History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: JBPAPP-313
Type: Task Task
Status: Resolved Resolved
Resolution: Done
Priority: Major Major
Assignee: Shelly McGowan
Reporter: Fernando Nasser
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JBoss Enterprise Platform App Edition

JBPAPP-258 - ANN-551 Guaranty the same parameter ordering when overriding SQL across VMs and compilations

Created: 08/Aug/07 05:07 PM   Updated: 28/Aug/07 12:35 PM
Component/s: None
Affects Version/s: 4.2.0.GA
Fix Version/s: 4.2.0.GA_CP01
Security Level: Public (Everyone can see)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Text File hibernate-annotations-ANN-551.patch (2 kb)


Affects: Release Notes


 Description  « Hide
Switch CP branch to Hibernate with that fix?

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order:

Patrick Macdonald [24/Aug/07 09:31 AM]
Thanks Emmanuel. Switching ownership from Fernando Meyer to Fernando Nasser.

Fernando Nasser [24/Aug/07 11:41 AM]
From the 650+ diff that that FishEye link shows me for src/org/hibernate/cfg/AnnotationBinder.java (which patch refused to apply), I was able to shorten it down to this 25 line diff (attached).

Fernando Nasser [24/Aug/07 11:42 AM]
Emmanuel, please confirm that the attached diff is the _complete_ fix for ANN-551. Thanks.

Emmanuel Bernard [24/Aug/07 02:48 PM]
Sorry for the mix of style refactoring and patch. I'll make sure we don't do that in the future.

Yes the diff is correct (actually it's the opposite diff, but the content is good).

Also apply the changes on the tests

Index: branches/Branch_3_2/HibernateExt/annotations/src/test/org/hibernate/test/annotations/query/Chaos.java
===================================================================
diff -u -N -r11171 -r11182
--- branches/Branch_3_2/HibernateExt/annotations/src/test/org/hibernate/test/annotations/query/Chaos.java (.../Chaos.java) (revision 11171)
+++ branches/Branch_3_2/HibernateExt/annotations/src/test/org/hibernate/test/annotations/query/Chaos.java (.../Chaos.java) (revision 11182)
@@ -22,8 +22,8 @@
  */
 @Entity
 @Table(name="CHAOS")
-@SQLInsert( sql="INSERT INTO CHAOS(size, name, nickname, id) VALUES(?,upper(?),?,?)")
-@SQLUpdate( sql="UPDATE CHAOS SET size = ?, name = upper(?), nickname = ? WHERE id = ?")
+@SQLInsert( sql="INSERT INTO CHAOS(name, nickname, size, id) VALUES(upper(?),?,?,?)")
+@SQLUpdate( sql="UPDATE CHAOS SET name = upper(?), nickname = ?, size = ? WHERE id = ?")
 @SQLDelete( sql="DELETE CHAOS WHERE id = ?")
 @SQLDeleteAll( sql="DELETE CHAOS")
 @Loader(namedQuery = "chaos")

Fernando Nasser [24/Aug/07 03:12 PM]
NP. And yes, the reverse of that. I did apply the test patch, but with that I had no problem so I did not include it. Good that you've posted it for reference. Actually, I will replace the file with the complete patch for future reference.

Thanks for your help!

Fernando Nasser [24/Aug/07 03:14 PM]
Correct/complete version of patch

Fernando Nasser [24/Aug/07 03:54 PM]
Flipped JBPAPP_4_2_0_GA_CP branch to use 3.2.1.patch01