PATCH NAME:
BZ-979103
PRODUCT NAME:
JBoss Enterprise Application Platform
VERSION:
6.1.0
SHORT DESCRIPTION:
Multiple fixes for Hibernate unique keys and foreign keys in ORM 4.2.0.Final
LONG DESCRIPTION:
Multiple fixes for Hibernate unique keys and foreign keys in ORM 4.2.0.Final
Identifier too long
https://hibernate.atlassian.net/browse/HHH-1904
Configuration#generateSchemaUpdateScript does not create unique constraints
https://hibernate.atlassian.net/browse/HHH-8092
Natural IDs generating one UniqueKey per Column
https://hibernate.atlassian.net/browse/HHH-8178
Make unique constraint handling on schema update configurable
https://hibernate.atlassian.net/browse/HHH-8162
Make generated constraint names short and non-random
https://hibernate.atlassian.net/browse/HHH-8217
DenormalizedTable FK constraint names can be too long
https://hibernate.atlassian.net/browse/HHH-8269
Incorrect "unique-key" naming comment in docs
https://hibernate.atlassian.net/browse/HHH-8273
union-subclass generates bad alter table for unique constraint
https://hibernate.atlassian.net/browse/HHH-8275
MANUAL INSTALL INSTRUCTIONS:
Backup and remove the following files:
$JBOSS_HOME/modules/system/layers/base/org/hibernate/main/hibernate-core-4.2.0.Final-redhat-1.jar
$JBOSS_HOME/modules/system/layers/base/org/hibernate/main/module.xml
Extract the patched files by either:
Using unzip:
unzip -d $JBOSS_HOME/ BZ-979103
Or by extracting the files from the zip to the following locations:
$JBOSS_HOME/modules/system/layers/base/org/hibernate/main/hibernate-core-4.2.0.Final-redhat-1-BZ-979103.jar
$JBOSS_HOME/modules/system/layers/base/org/hibernate/main/module.xml
Instructions to uninstall:
Restore the following files that were backed up before the patch was installed:
$JBOSS_HOME/modules/system/layers/base/org/hibernate/main/hibernate-core-4.2.0.Final-redhat-1.jar
$JBOSS_HOME/modules/system/layers/base/org/hibernate/main/module.xml
COMPATIBILITY:
DEPENDENCIES:
JBoss Enterprise Application Platform 6.1.0
SUPERSEDES:
SUPERSEDED BY:
CREATOR:
Brett Meyer
DATE:
11 July 2013
Comment 3Rostislav Svoboda
2013-07-01 08:38:43 UTC
Brett, this looks like real one-off. If you want to have these fixes in EAP 6.1.1 I would suggest to create new BZ and remove eap-6.1.1 flag from this BZ.
it's really confusing - is this BZ meant to be fixed in EAP 6.1.1 ?
Comment 4Rostislav Svoboda
2013-07-01 08:58:10 UTC
No regressions were found and the issue was verified. QA Passed.
MD5 sum for tested files:
303d93111f3479eedf87fe572a2338f8 BZ-979103.zip
97b3798f16afc2d1043077f528832ed4 hibernate-core-4.2.0.Final-redhat-1-BZ-979103.jar
Comment 16Christopher O'Brien
2013-07-25 20:11:41 UTC