Community
Participate
Working Groups
Build Identifier: 2.3.0 In DDL creation constraints are created in unspecified order. This is very similar to https://bugs.eclipse.org/bugs/show_bug.cgi?id=330237. Fix: Change getUniqueConstraints in org.eclipse.persistence.internal.helper.DatabaseTable to create LinkedHashMap instead of HashMap: public Map<String, List<List<String>>> getUniqueConstraints() { if (this.uniqueConstraints == null) { this.uniqueConstraints = new HashMap<String, List<List<String>>>(); } to public Map<String, List<List<String>>> getUniqueConstraints() { if (this.uniqueConstraints == null) { this.uniqueConstraints = new LinkedHashMap<String, List<List<String>>>(); } Also changing foreignKeyMap in org.eclipse.persistence.tools.schemaframework.TableDefinition to LinkedHashMap would probably make sense for consistent ordering (note that clone also creates a new instance of the map). Reproducible: Always Steps to Reproduce: Run schema generation several times (possibly on different machines) and compare the order of constraint creation clauses in the resulting SQL.
If it helps I can provide a patch, but as the changes are very trivial I thought it doesn't help much.
no need to provide a patch. I hope to take a look at the bugs with submitted patches prior to our 2.3.2 patch.
Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines Community: Please vote for this bug if it is important to you. Votes are one of the main criteria we use to determine which bugs to fix next.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink