gen-entity

Generates JPA Entity classes following project convention rules through guided interviews.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/VelkaressiaBlutkrone/spring-python-llm-exam-mng --skill gen-entity-velkaressiablutkrone
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gen-entity
Source: https://github.com/VelkaressiaBlutkrone/spring-python-llm-exam-mng/tree/main/.claude/skills/gen-entity
Command: npx skills add https://github.com/VelkaressiaBlutkrone/spring-python-llm-exam-mng --skill gen-entity-velkaressiablutkrone

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing JPA Entity classes by hand often leads to inconsistent conventions—wrong PK types, EAGER fetching, misplaced @Builder annotations, or incorrect table naming. This Skill enforces the project's common-rule.md conventions automatically when creating new domain entities. ## Core Features & Use Cases - Convention-Enforced Generation: Produces Entity classes with Integer IDENTITY primary keys, LAZY fetch associations, constructor-level @Builder, and snake_case _tb table names. - Guided Interview Flow: Collects domain name, field definitions, and relationships one question at a time before generating code. - Use Case: When you need a new Board entity with title, content, a ManyToOne User relation, and a OneToMany Reply list, the Skill generates the complete class in the correct package without manual boilerplate. ## Quick Start Ask the AI to create an entity by saying "엔티티 만들어줘" or typing /gen-entity, then provide the domain name and field list when prompted.

Frequently Asked Questions about gen-entity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a JPA Entity class with this skill?▼

Trigger it by typing /gen-entity or asking "엔티티 만들어줘". The skill interviews you for the domain name, field list with types and constraints, and relationships, then generates the complete Entity class following project conventions.

What JPA conventions does the generated entity follow?▼

Generated entities use Integer IDENTITY primary keys, FetchType.LAZY on all associations, constructor-level @Builder excluding collections, @CreationTimestamp for createdAt, and snake_case table names with the _tb suffix.

Can I use Long as the primary key type in generated entities?▼

No, the convention strictly requires Integer for primary keys with GenerationType.IDENTITY strategy. Long is explicitly forbidden by the common-rule.md conventions this skill enforces.

What happens if an entity with the same name already exists?▼

The skill does not overwrite existing entities. It notifies you that a class with the same name already exists so you can decide whether to rename or modify the existing file.

Where are the generated entity files placed?▼

Files are created under src/main/java/com/example/ajax_demo/{domain}/{Domain}.java. If the domain package does not exist yet, the skill creates it along with the entity class.