Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

generate UUID id for my entities

@Id  
@Column(updatable = false, nullable = false, columnDefinition = "uuid DEFAULT uuid_generate_v4()")
@GeneratedValue(generator = "UUID")
@GenericGenerator(name = "UUID", strategy = "org.hibernate.id.UUIDGenerator")
private UUID id;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #generate #UUID #id #entities
ADD COMMENT
Topic
Name
3+2 =