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: Question about getHibernateTemplate().find statement
PostPosted: Tue Nov 20, 2007 5:06 am 
Newbie

Joined: Fri Jun 08, 2007 3:16 am
Posts: 11
I want to query two table by using getHibernateTemplate().find,like follows:
getHibernateTemplate().find("from test.a a ,test.b b where a.id=b.id and a.c='abc'")

My question is how to extract data from getHibernateTemplate().find statement?

Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 20, 2007 8:00 am 
Newbie

Joined: Mon Nov 19, 2007 1:57 pm
Posts: 14
Its depends what You want receive from this query.
Specify "select" clause in this query.
for ex. "select a from ..", and retrieve list of test.a.

Read please also "14.6. The select clause" in "Hibernate Reference Documentation".


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.