Bug 979103 - [One-off patch] Multiple fixes for Hibernate unique keys and foreign keys in ORM 4.2.0.Final
Summary: [One-off patch] Multiple fixes for Hibernate unique keys and foreign keys in ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Hibernate
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: One-off release
Assignee: Brett Meyer
QA Contact: Zbyněk Roubalík
URL:
Whiteboard:
Depends On: 962421 979098 981720
Blocks: 990362 991581
TreeView+ depends on / blocked
 
Reported: 2013-06-27 15:26 UTC by Ricardo Martinelli de Oliveira
Modified: 2018-12-02 16:37 UTC (History)
6 users (show)

Fixed In Version:
Clone Of: 979098
Environment:
Last Closed: 2013-07-25 20:11:41 UTC
Type: Support Patch
Embargoed:


Attachments (Terms of Use)
patched hibernate module (3.98 MB, application/download)
2013-06-27 22:52 UTC, Brett Meyer
no flags Details
patched hibernate module (3.99 MB, application/download)
2013-07-11 23:57 UTC, Brett Meyer
no flags Details

Description Ricardo Martinelli de Oliveira 2013-06-27 15:26:18 UTC
+++ This bug was initially created as a clone of Bug #979098 +++

Hibernate 4.2.0.Final (EAP 6.1.0) included changes to how unique keys and foreign keys were generated (both default to using constraints in "alter table" statements).  Multiple issues were found and fixed in commits spanning 4.2.1.Final to 4.2.3.Final.

This is fairly high priority and should be considered for EAP 6.1.1.  It may affect anyone using schema generation and un-named unique or foreign keys.

https://hibernate.atlassian.net/browse/HHH-1904
https://hibernate.atlassian.net/browse/HHH-8092
https://hibernate.atlassian.net/browse/HHH-8178
https://hibernate.atlassian.net/browse/HHH-8162
https://hibernate.atlassian.net/browse/HHH-8217
https://hibernate.atlassian.net/browse/HHH-8269
https://hibernate.atlassian.net/browse/HHH-8273
https://hibernate.atlassian.net/browse/HHH-8275

--- Additional comment from Brett Meyer on 2013-06-27 11:18:08 EDT ---

Note that there may be some concerns about backward compatability with the fixes.  They do change the strategy used for automatic generation of constraint names.  However, we're specifically fixing issues where this generation was not deterministic in 4.2.0.Final, so it's a moot point.

Comment 2 Brett Meyer 2013-06-27 22:52:13 UTC
Created attachment 766357 [details]
patched hibernate module

Comment 3 Rostislav 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 4 Rostislav Svoboda 2013-07-01 08:58:10 UTC
I found https://bugzilla.redhat.com/show_bug.cgi?id=979098 for EAP 6.1.1

I think eap-6.1.1 flag should be removed.

Comment 5 Brett Meyer 2013-07-01 15:49:55 UTC
The eap-6.1.1 has been set automatically, lately -- not sure why.  Removing.

Comment 13 Zbyněk Roubalík 2013-07-08 08:35:59 UTC
Attached zip should countain README file with patching instructions. Could you please add the README file into the zip?

Thank you

Comment 14 Brett Meyer 2013-07-11 23:57:38 UTC
Created attachment 772485 [details]
patched hibernate module

Comment 15 Zbyněk Roubalík 2013-07-17 10:22:33 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


Note You need to log in before you can comment on or make changes to this bug.