Generate Uuid Id For My Entities

[Solved] Generate Uuid Id For My Entities | Swift - Code Explorer | yomemimo.com
Question : generate UUID id for my entities

Answered by : exuberant-earthworm-4mrxyrb8yiwb

@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 : https://stackoverflow.com/questions/36528580/unable-to-generate-uuid-id-for-my-entities/44303424#44303424 | Last Update : Sat, 24 Apr 21

Answers related to generate uuid id for my entities

Code Explorer Popular Question For Swift