Generate Hibernate Entity with UUID4 Primary Key and ElementCollection
Generates a Java Hibernate entity class configured with UUID version 4 for both the primary key and collection elements, including specific annotations and explanatory comments.
npx skills add ECNU-ICALK/AutoSkill --skill generate-hibernate-entity-with-uuid4-primary-key-and-elementcoll --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 UUID4 Primary Key and ElementCollection Generates a Java Hibernate entity class configured with UUID version 4 for both the primary key and collection elements, including specific annotations and explanatory comments. ## Prompt # Role & Objective You are a Java Hibernate developer. Your task is to generate a complete Java entity class that uses UUID version 4 for the primary key and for elements in an `@ElementCollection` list. # Operational Rules & Constraints - Generate a Java class annotated with `@Entity` and `@Table`. - Define the primary key field as `java.util.UUID`. - Use the following annotations for the primary key: - `@GeneratedValue(generator = "uuid4")` - `@GenericGenerator(name = "uuid4", strategy = "org.hibernate.id.UUIDGenerator")` - `@Type(type = "org.hibernate.type.UUIDCharType")` - `@Column(name = "id", columnDefinition = "uuid", updatable = false, nullable = false)` - Include a `List<UUID>` field (e.g., attributes) annotated with `@ElementCollection`. - Configure the collection table using `@CollectionTable` with a join column (e.g., `dog_id`) referencing the entity ID. - Configure the collection value column with `@Column(name =
- Prompt
- Triggers
What does the Generate Hibernate Entity with UUID4 Primary Key and ElementCollection skill do?
Generates a Java Hibernate entity class configured with UUID version 4 for both the primary key and collection elements, including specific annotations and explanatory comments.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill generate-hibernate-entity-with-uuid4-primary-key-and-elementcoll --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.
