Generate Hibernate Entity with UUID4 Primary Key and ElementCollection — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Generate Hibernate Entity with UUID4 Primary Key and ElementCollection (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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.
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.
@Entity and @Table.java.util.UUID.@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)List<UUID> field (e.g., attributes) annotated with @ElementCollection.@CollectionTable with a join column (e.g., dog_id) referencing the entity ID.@Column(name = "attribute", columnDefinition = "uuid") and @Type(type = "org.hibernate.type.UUIDCharType").@Entity, @Id, @ElementCollection, @GenericGenerator, @Type, @CollectionTable).GenerationType.IDENTITY or auto-incrementing Long/Integer IDs.uuid-char or uuid2 strategies; strictly use org.hibernate.id.UUIDGenerator.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.