jpa-rules

Installation
SKILL.md

JPA & Hibernate Rules

Overview

JPA entity mapping, fetch strategies, and persistence context management rules for this project.

Core principles

Key Principle: Keep entities simple. Extend BaseEntity or BaseTimeEntity. Use LAZY fetching. Avoid associations.

Guideline Description
Extend BaseEntity or BaseTimeEntity Inherit audit columns
Enum as STRING Always @Enumerated(EnumType.STRING), never ORDINAL
LAZY by default Use FetchType.LAZY for all associations
No associations Do not use entity associations by default

BaseEntity vs BaseTimeEntity

Installs
1
First Seen
Apr 10, 2026