-->
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.  [ 2 posts ] 
Author Message
 Post subject: advice on stored procedures
PostPosted: Tue Jan 31, 2006 7:49 am 
Newbie

Joined: Fri Jan 27, 2006 8:04 am
Posts: 8
If we use stored procedures to insert objects into the DB, how do we return the columns that the DB has automatically inserted? For example, the PK, modification timestamps and other computed fields. Can I return these as out parameters of the stored procedure?

Also, not clear to me from the hib3 documentation, can the queries using stored procedures take parameters?

For various reasons we're going to lean heavily on stored procedures for our project. Is hibernate support OK, or would we be better off with iBatis?


Top
 Profile  
 
 Post subject: imo
PostPosted: Tue Jan 31, 2006 6:51 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
Since you are focused on SQL I would suggest to go with iBatis. But you can use H and iBatis simultaneously if you want:
http://sandbox.sourcelabs.com/kosta/hb- ... batis.html

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.