Spring Boot中的JPA/Hibernate实体设计、关系、查询优化、事务、审计、索引、分页和连接池模式。
76
64%
Does it follow best practices?
Impact
96%
1.09xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./docs/zh-CN/skills/jpa-patterns/SKILL.mdJPA entity design with auditing and migrations
IDENTITY generation strategy
100%
100%
STRING enum persistence
100%
100%
Audit timestamp annotations
100%
100%
AuditingEntityListener declared
100%
100%
EnableJpaAuditing config
100%
100%
Slug index defined
100%
100%
Status index defined
100%
100%
OneToMany relationship
0%
0%
Column constraints applied
42%
100%
JpaRepository extension
100%
100%
Pageable query method
100%
100%
Migration file present
100%
100%
No Hibernate auto DDL
100%
100%
N+1 prevention and paginated query optimization
JOIN FETCH query
100%
100%
No EAGER on collection
100%
100%
Interface-based projection
100%
100%
Projection used in repository
100%
100%
PageRequest pagination
100%
100%
Sort specified in PageRequest
0%
50%
readOnly transaction on reads
100%
100%
@Transactional on write methods
100%
100%
@Param annotation on query
100%
100%
JpaRepository extended
100%
100%
README explains N+1 fix
100%
100%
Connection pool configuration and data access testing
maximum-pool-size=20
100%
100%
minimum-idle=5
0%
100%
connection-timeout=30000
100%
100%
validation-timeout=5000
0%
100%
PostgreSQL LOB property
100%
100%
@DataJpaTest annotation
100%
100%
Testcontainers used
100%
100%
SQL DEBUG logging
100%
100%
Bind parameter TRACE logging
100%
100%
No H2 dependency
100%
100%
No Hibernate auto DDL in prod config
100%
100%
ae2cadd
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.