-->
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.  [ 1 post ] 
Author Message
 Post subject: Select from ManyToMany
PostPosted: Sun Nov 03, 2013 5:18 pm 
Newbie

Joined: Sat Aug 25, 2012 3:18 pm
Posts: 4
Hi,

can you help me to write hql query to select data like in sql:

Code:
select * from stock s,stock_category sc, category c where s.stock_id = sc.stock_id and c.category_id = sc.category_id;


from relation ManyToMany in this tutorial:

Code:
http://www.mkyong.com/hibernate/hibernate-many-to-many-relationship-example-annotation
?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.