-->
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: Join problem
PostPosted: Mon Sep 25, 2006 2:56 am 
Newbie

Joined: Sat Sep 09, 2006 11:01 am
Posts: 6
Hi guys!

I have table Book and table Author
Book many-to-one Author
I want to select all books where Author.name lik some string. Here is my query:
"from Book b inner join b.author a where a.name like :text"
but the query returns list with Object instead of Book
what's wrong here?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 3:45 am 
Beginner
Beginner

Joined: Mon Nov 22, 2004 11:21 am
Posts: 42
Please have a look at: http://forum.hibernate.org/viewtopic.php?t=964833

P.S.: Please rate if this posting was helpful

_________________
Real programmers confuse Halloween and Christmas because OCT 31 = DEC 25


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.