I\'m trying to persist an entity in PostgreSQL that uses UUID as primary key. I\'ve tried persisting it as a plain UUID:
@Id @Column(name = \"customer_id\")
To have it working with Hibernate 5.1.x, you can follow Steve Ebersole comment here
@Id @GeneratedValue @Column( columnDefinition = "uuid", updatable = false ) public UUID getId() { return id; }