Spring Boot中的JPA/Hibernate模式,用于实体设计、关系处理、查询优化、事务管理、审计、索引、分页和连接池。
73
63%
Does it follow best practices?
Impact
86%
1.26xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./docs/zh-CN/skills/jpa-patterns/SKILL.mdTesting with Testcontainers, SQL logging, and schema migrations
@DataJpaTest annotation
100%
100%
Testcontainers for PostgreSQL
100%
100%
Hibernate SQL logging
100%
100%
Hibernate bind parameter logging
100%
100%
No Hibernate auto DDL
100%
100%
Flyway or Liquibase migration
100%
100%
Additive migration only
100%
100%
PostgreSQL LOB property
0%
100%
HikariCP pool settings
0%
100%
Pagination, transactions, batch writes, and HikariCP config
readOnly transactions
100%
100%
Write transactions
100%
100%
PageRequest with Sort
100%
100%
Cursor-based pagination
0%
0%
Composite index
30%
0%
Projection interface
0%
0%
saveAll for bulk insert
100%
100%
Batch size configuration
100%
100%
HikariCP pool size
100%
100%
HikariCP timeouts
50%
100%
Entity design, auditing, indexing, and relationships
IDENTITY key generation
0%
100%
STRING enum mapping
100%
100%
AuditingEntityListener
0%
100%
Audit timestamp fields
50%
100%
EnableJpaAuditing config
0%
100%
Table-level index declaration
100%
100%
OneToMany cascade and orphan
100%
100%
No EAGER on collection
100%
100%
JOIN FETCH query
100%
100%
Projection interface
0%
0%
Flyway or Liquibase migration
100%
100%
e04ea0b
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.