I'm using OpenJPA 2.1.0 for my persistence logic with annotations. The primary key in my entities is annotated like the following:
@Id
@GeneratedValue
@Column(name = CONVERSATION_ID)
private long id;
I realized that the generated ids are somehow clustered like 1,2,3,11,12,13,21,22,23,etc.
I learned from the OpenJPA documentation that per default the GeneratorStrategy.AUTO is applied and that the concrete generation strategy is up to the JPA vendor (http://openjpa.apache.org/builds/2.1.0/apache-openjpa-2.1.0/docs/manual/main.html).
Unfortunately I did not find any documentation on the how and why. Can anybody point me to the right direction?
Thanks