Install any skill in seconds. Free to start, no credit card required.
Get Started Free →xu-xiang/jpa-patterns
JPA/Hibernate 模式,涵盖 Spring Boot 中的实体设计、关系、查询优化、事务、审计、索引、分页和连接池。
Passed 22 of 22 test cases with the skill, and 21 of 22 without it.
1 fixed21 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
What are the recommended HikariCP connection timeout and validation timeout property values (in milliseconds) for Spring Boot datasources?
| Checked | Without skill | With skill |
|---|---|---|
| Sets spring.datasource.hikari.connection-timeout to 30000. | Missed | Passed |
| Sets spring.datasource.hikari.validation-timeout to 5000. | Missed | Passed |
The instructions your model reads when the skill loads.
用于 Spring Boot 中的数据建模、存储库(Repository)和性能调优。
@Entity
@Table(name = "markets", indexes = {
@Index(name = "idx_markets_slug", columnList = "slug", unique = true)
})
@EntityListeners(AuditingEntityListener.class)
public class MarketEntity {
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(nullable = false, length = 200)
private String name;
@Column(nullable = false, unique = true, length = 120)
private String slug;
@Enumerated(EnumType.STRING)
private MarketStatus status = MarketStatus.ACTIVE;
@CreatedDate private Instant createdAt;
@LastModifiedDate private Instant updatedAt;
}
启用审计 (Auditing):
@Configuration
@EnableJpaAuditing
class JpaConfig {}
test cases passed, vs 21 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.