-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Support for JDBC 3
PostPosted: Mon Oct 20, 2003 5:22 am 
Newbie

Joined: Tue Aug 26, 2003 9:52 am
Posts: 15
Hello,

When will hibernate support JDBC 3 ? (I' know it's a simple question that's not simple to implement...) In particular support for Retrieving auto-generated keys.

Thanks

Alain.
A Thankfull hibernate user.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2003 8:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
There is a ballance against new features and backward compatibility. I cannot speak for Gavins plans but I would not expect this to get a large focus for a little while. If the bulk/most of the databases have good jdbc3 drivers then the situation would be different.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2003 8:51 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
For me, this is more an issue of JDK compatibility.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 1:30 am 
Regular
Regular

Joined: Tue Sep 02, 2003 5:09 pm
Posts: 81
Location: Whitefish Montana
I am also very interested in JDBC 3.0 and submitted a patch to support getGeneratedKeys. I have used that patch against DB2 and MySQL, which has some bulk but probably doesn't represent most databases. The patch is backward compatable with JDBC 2.0. For me it was more work to go around this issue and our databases are very large so doubling up I/O on inserts is hard to justify when a better solution exists. From Gavin's comment I should have pushed some of the common code up into the AbstractEntityPersister, which I can do right away if there is any possability that this will be committed.

http://opensource.atlassian.com/project ... key=HB-380


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 1:36 am 
Regular
Regular

Joined: Tue Sep 02, 2003 5:09 pm
Posts: 81
Location: Whitefish Montana
I forgot to mention that CVS and Sourceforge are now working so I moved these changes up and am now working directly against the 2.1 branch so providing an up-to-date patch is easy at this point. I also have unit tests that show this works for MySQL and DB2.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 1:45 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Ah. I didn't notice that you had updated this patch. Yes, if you refactor the common code up to AbstractEntityPersister, I would be inclined to commit this patch.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.