TableGenerator - Sequence/ID Generationhttps://www.eclipse.org/forums/index.php/mv/msg/585693/1174837/#msg_1174837
The SequenceGenerator's are working fine, but the TableGenerator's aren't. I tried to check the server.log by setting the EclipseLink's logging to '**FINEST**', but I don't see any queries logged for getting the next value of the Id. The EJB entity that uses TableGenerator is as below:

**Note**: The Table 'ID_GENERATOR' is used by all entities with TableGenerator annotation, with a Unique Generator name.

After checking the logs with '**FINEST**' setting, I tried many other ways, but couldn't get the 'TableGenerator' working. Later, I downloaded the EclipseLink's (2.4.2) sources and debugged the 'Sequencing' mechanism, during deployment, as well as at application runtime. During deployment, I found the Sequence 'TEST' to be initialized, but at runtime, the Id's are not being generated.

BTW, my persistence.xml has a couple of datasources, with the following properties for EclipseLink:

Do you have any clue, as to what's happening here?]]>Babji Chetty2013-11-07T10:43:33-00:00Re: TableGenerator - Sequence/ID Generationhttps://www.eclipse.org/forums/index.php/mv/msg/585693/1181283/#msg_1181283
http://stackoverflow.com/questions/19823833/eclipselink-and-tablegenerator-id-not-generated

if so, then the issue was with using the "eclipselink.allow-zero-id" property to allow 0 to be used as an ID instead of having them generated. ]]>Chris Delahunt2013-11-11T13:58:11-00:00Re: TableGenerator - Sequence/ID Generationhttps://www.eclipse.org/forums/index.php/mv/msg/585693/1187885/#msg_1187885
Babji Chetty2013-11-15T10:30:45-00:00