-->
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: Stored Proc returning more than one table
PostPosted: Wed Mar 08, 2006 9:49 pm 
Newbie

Joined: Wed Mar 08, 2006 9:43 pm
Posts: 5
how can I specify in the <sql-query... that my stored procedure returns
values from more than one table that conceptually should map to more than one domain object.

I have many stored procedures and all of them return various combinations of fields from various tables. So inside which class tag should I put sql-query ?

Perhaps an example could be provided ?
thankyou
AJ


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 10:08 pm 
Expert
Expert

Joined: Mon Jan 09, 2006 5:01 pm
Posts: 311
Location: Sacramento, CA
check out pg 162 & 3 of reference.pdf
it shows you how to do what you want

http://www.hibernate.org/hib_docs/v3/reference/en/pdf/hibernate_reference.pdf

_________________
-JT

If you find my replies helpful, please rate by clicking 'Y' on them. I appreciate it.


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.