AGENT SKILL

jpa-entity-review

Review JPA/Hibernate entity mappings for N+1 queries, fetch strategy and transaction boundaries. Use when entity classes or repositories change.

License 许可
Apache-2.0
所属仓库
acltabontabon/habi
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
jpa-entity-review
description
Review JPA/Hibernate entity mappings for N+1 queries, fetch strategy and transaction boundaries. Use when entity classes or repositories change.

02 资源文件 1

03 SKILL.md 正文

JPA entity review

  • Default to FetchType.LAZY for associations; justify every EAGER.
  • Look for N+1 patterns in loops over associations; prefer fetch joins or entity graphs.
  • Keep equals/hashCode stable for detached entities (business key or id-based with care).
  • Check @Transactional boundaries on service methods that modify entities.

04 同仓库更多 Skills