rrezartprebreza/spring-boot-skills / skills/spring-boot-4/spring-data-jpa
spring-data-jpa
VerifiedUse when generating or refactoring Spring Boot 4 JPA entities, repositories, queries, projections, persistence tests, entity relationships, embeddables, IDs, or Hibernate mappings. Covers Jakarta Persistence 3.2 imports, Hibernate 7 entity modeling, new-state detection, N+1 prevention, projections, keyset pagination, batch writes, and common agent mistakes.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.9 KB |
| agents/openai.yaml | config | 197 B |
| examples/bad-entity.java | other | 559 B |
| examples/good-entity.java | other | 3.1 KB |
| templates/BaseAssignedIdEntity.java | other | 633 B |
examples/bad-entity.java
View on GitHub// BAD - common Boot 4 JPA mistakes.
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
@Data
public final class Order {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private long version;
private String customerEmail;
@Enumerated(EnumType.ORDINAL)
private OrderStatus status;
@OneToMany
private List<OrderItem> items;
@ManyToOne
private User user;
public Order() {
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |