Community
Participate
Working Groups
While the name of the property eclipselink.jpa.uppercase-column-names suggest fields are to be uppercase the intent of the flag is to solve the case sensitivity issue within EclipseLink, by using uppercase field names only during comparisons. When it is set user defined columns are being passed in as uppercase in the generated SQL as well. ie: @Column(name="MixedCaseName") -> SQL: "SELECT t0.MIXEDCASENAME FROM TABLE t0" This causes errors on case sensitive database where the field is defined as "MixedCaseName". As this will break applications or require them to change a property to get around it, this issue is preventing the eclipselink.jpa.uppercase-column-names property from defaulting to true, blocking 294267.
Created attachment 171982 [details] proposed fix, test cases to come later
Created attachment 174965 [details] proposed JPA fix with test refactoring
Fix checked into 2.1.1 and main
*** Bug 319784 has been marked as a duplicate of this bug. ***
is there a binary download available with this fix?
Downloads are available from http://www.eclipse.org/eclipselink/downloads/index.php You can get 2.1.1 or 2.2 with the fix from either the nightly builds or a milestone built after the posting mentioning it was checked in.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink