This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 211314 - Add unary-table sequence support to the EclipseLink-ORM.XML Schema
Summary: Add unary-table sequence support to the EclipseLink-ORM.XML Schema
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 325781
  Show dependency tree
 
Reported: 2007-11-28 14:37 EST by Guy Pelletier CLA
Modified: 2022-06-09 10:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guy Pelletier CLA 2007-11-28 14:37:02 EST
 
Comment 1 Doug Clarke CLA 2008-02-04 15:06:08 EST
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;







Comment 2 Guy Pelletier CLA 2008-03-13 13:51:06 EDT
There is current support in the 10.1.3 schema for this functionality. In fact, we need another bug to cover XMLFileSequence support.
Comment 3 Karen Butzke CLA 2008-07-16 16:14:38 EDT
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.
Comment 4 Tom Ware CLA 2009-04-16 10:59:45 EDT
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.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:30:51 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink