Community
Participate
Working Groups
I do not believe this is currently supported in the initial EclipseLink ORM XSD contributed from TopLink. If it is not supported in the initial schema then it is not a must-have feature for the 1.0 release. For this sequencing type I would like to consider reusing the @TableGenerator and interpreting its configured values to imply a unary table (one column, one row). The only problem with this approach is there is no simple way to specify that there is no pkColumnName short of a special String. I believe the most important part is that users can use continue to use the @GeneratedValue. OPTION 1: Use @TableGenerator where value & pk column name are the same @Id @GeneratedValue(generator = "EMP-SEQ") @TableGenerator(name="EMP-SEQ", table = "UNARY_EMP_SEQ", valueColumnName = "VALUE", pkColumnName = "VALUE") private int id; OPTION 2: Add @UnaryTableGenerator like @ @Id @GeneratedValue(generator = "EMP-SEQ") @UnaryTableGenerator(name="EMP-SEQ", table = "UNARY_EMP_SEQ", valueColumnName="VALUE") private int id;
There is current support in the 10.1.3 schema for this functionality. In fact, we need another bug to cover XMLFileSequence support.
This could be a bit odd since there is no enum option in GenerationType for UNARY_TABLE. Not sure what the Dali UI would display for the default generation type in this case.
Updating priority due to revised bug categorization process. See the following page for details: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines#Priority_and_Target_Milestone If you feel the updated priority is incorrect, please send an email to eclipselink-users@eclipse.org.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink