-->
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: inheritance, primary keys and stored procedures
PostPosted: Wed Nov 30, 2005 10:29 am 
Newbie

Joined: Mon Nov 28, 2005 2:35 pm
Posts: 14
Hi!

Is it possible to use stored procedures for saving objects, which are part of
a class hierarchie? To be more precise, the primary key should be generated by the stored procedure call. But I see no way, how the generated id could be passed from the insert of the parent table to the insert of the child table.
But this would be neccessary according the chapter "inheritance" of the documentation. I am using the table-per-class approach.

Thx in advance


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 30, 2005 7:07 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
see generatedKeys

property hibernate.jdbc.use_get_generated_keys

and tests in hibernate tree


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.