Top "Id-generation" questions

How to choose the id generation strategy when using JPA and Hibernate

I was going through Id generation section of the Hibernate reference guide and "java persistence with Hibernate" There are quite …

java hibernate jpa uniqueidentifier id-generation
Hibernate with Oracle sequence doesn't use it

I have configured hibernate to use oracle sequence. Sequence is created with cache=20, increment=1. All works fine, hibernate persisting entities. …

hibernate sequence id-generation
@GeneratedValue with strategy=GenerationType.AUTO generates repeated value after restart

I have a hibernate entity with an ID configured as @Id @GeneratedValue(strategy=GenerationType.AUTO) private Long id; The creation …

hibernate annotations id-generation
native generator class in hibernate

I have this part of hibernate mapping xml file, and I was looking for a good example for what does …

java hibernate hibernate-mapping id-generation