Community
Participate
Working Groups
Currently the default table name defined in TableSequence: public static final String defaultTableName = "SEQUENCE"; Some database platforms (Symfoware) don't allow "SEQUENCE" to be used as a table name. Therefore platform should provide default sequence table name.
Created attachment 156567 [details] suggested patch. Defined getDefaultSequenceTableName on DatabasePlatform; Deprecate TabeSequence.defaultTableName - use an empty string instead, that will trigger usage of platform.getDefaultSequenceTableName(); Because onDisconnect(Platform) method is no longer does anything declared onDisconnect() and onConnect() as public - that allows to edit sequence after it has been connected (onDisconnect(), change, onConnect()); Fixed clone so that the returned sequence is always disconnected (no longer holds the platform of the original - note that it makes a difference only if the original sequence is connected).
Created attachment 156570 [details] Corrected patch Removed OraclePlatform that was mistakenly put into the original patch; added a comment in TableSequence.
Created attachment 157146 [details] Slightly updated patch. DatabasePlatform.getSequenceTableName method called when the default sequence is disconnected and doesn't have table name defined returns defaultSequenceTableName defined on the platform; Fixed SessionsXMLSchemaDefaultValueTest as pointed by Dies.
Checked the fix into trunk (2.1) Reviewed by James
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink