Community
Participate
Working Groups
Steps To Reproduce: 1. have a FK involving a very long field name More information: I've fixed a but in TableDefinition that is apparently filed in glassfish, but not fixed there (see https://glassfish.dev.java.net/issues/show_bug.cgi?id=3554) The bug still exists in the 2.0 nightly snapshot. if (foreignKeyName.length() > maximumNameLength) { // Still too long: remove vowels from the table name and field name and truncate the table name. String shortenedFieldName = Helper.removeVowels(onlyAlphaNumericFieldName); String shortenedTableName = Helper.removeVowels(onlyAlphaNumericTableName); foreignKeyName = Helper.truncate(shortenedTableName, maximumNameLength - shortenedFieldName.length()) + shortenedFieldName; } becomes if (foreignKeyName.length() > maximumNameLength) { // Still too long: remove vowels from the table name and field name and truncate the table name. String shortenedFieldName = Helper.removeVowels(onlyAlphaNumericFieldName); String shortenedTableName = Helper.removeVowels(onlyAlphaNumericTableName); if (shortenedFieldName.length() >= maximumNameLength) { foreignKeyName = Helper.truncate(shortenedFieldName, maximumNameLength); } else { foreignKeyName = Helper.truncate(shortenedTableName, maximumNameLength - shortenedFieldName.length()) + shortenedFieldName; } }
Setting target to 1.1X so this bug will be a candidate for the first patch release after 1.1
Suggested fix checked in.
Mass update to change fixed in target.
*** Bug 283508 has been marked as a duplicate of this bug. ***
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink