The order for 'unique'-constraints in the generated ddl scripts is random, because they are gathered in a HashMap and finally written out in iteration order of that Map (see org.hibernate.mapping.Table around line 561).
By changing the 'uniqueKeys' Map in org.hibernate.mapping.Table to be a LinkedHashMap, we would always get a stable order of generated unique constraints.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira