Hibernate JPA GUID Generation

Tags

,

 Copy and Paste the Blue colored Lines .

@Id
@Column(name = “Id”, unique = true, nullable = false, insertable = true, updatable = true, length = 45)
@GeneratedValue(generator=”db-guid”)
@GenericGenerator(name=”db-guid”, strategy = “guid”)