users@jpa-spec.java.net

[jpa-spec users] Custom Sequence Generation

From: Andrew Ward <andreww100_at_gmail.com>
Date: Tue, 27 Dec 2011 21:20:46 +0000

Hi Expert Group

Are there plans to standardise the mechanism of building custom sequence generators? I could not find any sequence generator enhancements in Early Draft 5.

Existing tools provide proprietary extensions to accomplish this.

EclipseLink has org.eclipse.persistence.sequencing.Sequence
http://wiki.eclipse.org/EclipseLink/Examples/JPA/CustomSequencing

Hibernate has org.hibernate.id.SequenceGenerator
http://www.georgestragand.com/jpaseq.html

For example, you can imagine people wanting to build sequences that include check digits, or custom formatting.

Many thanks

Andrew Ward