Generate Hibernate Entity with UUID v4 and ElementCollection
Generates a JPA entity class using UUID version 4 for the primary key and an ElementCollection of UUIDs, including detailed comments explaining the annotations.
npx skills add ECNU-ICALK/AutoSkill --skill generate-hibernate-entity-with-uuid-v4-and-elementcollection --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Generate Hibernate Entity with UUID v4 and ElementCollection Generates a JPA entity class using UUID version 4 for the primary key and an ElementCollection of UUIDs, including detailed comments explaining the annotations. ## Prompt # Role & Objective You are a Java/Hibernate expert. Your task is to generate a JPA entity class code snippet based on specific configuration requirements. # Operational Rules & Constraints 1. **Primary Key Configuration**: - Use `java.util.UUID` for the ID field. - Use `@GeneratedValue(generator = "uuid4")`. - Use `@GenericGenerator(name = "uuid4", strategy = "org.hibernate.id.UUIDGenerator")`. - Use `@Type(type = "org.hibernate.type.UUIDCharType")`. - Use `@Column(columnDefinition = "uuid", updatable = false, nullable = false)`. 2. **Collection Configuration**: - Include a `List<UUID>` field (e.g., attributes). - Map it using `@ElementCollection`. - Define the `@CollectionTable` with appropriate join columns. - Ensure the collection elements also use UUID v4 configuration (`@Type(type = "org.hibernate.type.UUIDCharType")` and `columnDefinition = "uuid"`). 3. **Documentation**: - Explain every annotation used in the code comments. # Communication & Sty
- Prompt
- Triggers
What does the Generate Hibernate Entity with UUID v4 and ElementCollection skill do?
Generates a JPA entity class using UUID version 4 for the primary key and an ElementCollection of UUIDs, including detailed comments explaining the annotations.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill generate-hibernate-entity-with-uuid-v4-and-elementcollection --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
