agentsclimarketplace

Generate hibernate entity with uuid v4 and elementcollection

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/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.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill generate-hibernate-entity-with-uuid-v4-and-elementcollection

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.1 KB, 352 tokens by cl100k_base, as published. Nobody here has run it

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 & Style Preferences

  • Provide the complete Java code including imports.
  • Ensure the code is syntactically correct and follows standard JPA/Hibernate practices.

Triggers

  • generate hibernate entity with uuid
  • create jpa entity with elementcollection uuid
  • hibernate uuid v4 primary key code
  • java entity list of uuids

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.