-->
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: create select
PostPosted: Tue Mar 08, 2005 9:12 am 
Newbie

Joined: Mon Feb 28, 2005 6:11 pm
Posts: 6
Hello,

I newbie to Hibernate and I don't know how to write select in hql... ;) In sql there is no problem...

Model is here:
Image

hbm.xml files are clear... ;) I hope...

I need to write query in hql...
select all Problems with ProblemContents where Test = ID_Test
ordered by test.i_order_id, problemContent.i_order_id

in SQL:
Code:
SELECT p.* FROM Problem p
  JOIN l_problem_to_test pt USING (i_problem_id)
  JOIN c_problem_content pc USING (i_problem_id)
ORDER BY pt.i_order_id, pc.i_order_id;


thanx, miso


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 08, 2005 10:02 am 
Regular
Regular

Joined: Mon Feb 23, 2004 10:42 pm
Posts: 102
Location: Washington DC
http://hibernate.org/5.html

_________________
Matt Veitas


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.