Community
Participate
Working Groups
Build ID: 1.0.1 Steps To Reproduce: I added the following to AccessPlatform.java: /** * INTERNAL: * Build the identity query for native sequencing. */ public ValueReadQuery buildSelectQueryForIdentity() { ValueReadQuery selectQuery = new ValueReadQuery(); StringWriter writer = new StringWriter(); writer.write("SELECT @@IDENTITY"); selectQuery.setSQLString(writer.toString()); return selectQuery; } /** Append the receiver's field 'identity' constraint clause to a writer.*/ public void printFieldIdentityClause(Writer writer) throws ValidationException { try { writer.write(" COUNTER"); } catch (IOException ioException) { throw ValidationException.fileError(ioException); } } /** * INTERNAL: * Indicates whether the platform supports identity. * Sybase does through IDENTITY field types. * This method is to be used *ONLY* by sequencing classes */ public boolean supportsIdentity() { return true; } public void printFieldTypeSize(Writer writer, FieldDefinition field, FieldTypeDefinition fieldType, boolean shouldPrintFieldIdentityClause) throws IOException { if(!shouldPrintFieldIdentityClause) { super.printFieldTypeSize(writer, field, fieldType, shouldPrintFieldIdentityClause); } } public void printFieldUnique(Writer writer, boolean shouldPrintFieldIdentityClause) throws IOException { if(!shouldPrintFieldIdentityClause) { super.printFieldUnique(writer, shouldPrintFieldIdentityClause); } } More information:
Checked patch proposal into trunk.
Mass update to change fixed in target.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink