-->
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.  [ 4 posts ] 
Author Message
 Post subject: HQL statement class
PostPosted: Thu Sep 25, 2003 1:28 pm 
Regular
Regular

Joined: Wed Sep 10, 2003 7:09 am
Posts: 63
Hi,

Is there anyway do fully represent an HQL string in an object? Where can i find that object, or how can i make one (wich attributes should i use)?

Joao Rangel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 25, 2003 3:58 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Assuming I understand your request then read
http://www.hibernate.org/hib_docs/reference/html/query-criteria.html
Mostly supports what I think your have requested.


Top
 Profile  
 
 Post subject: Multiple tables query
PostPosted: Thu Sep 25, 2003 7:52 pm 
Regular
Regular

Joined: Wed Sep 10, 2003 7:09 am
Posts: 63
Yes, is something like Criteria that was was talking about, but there is one problem: Criteria only supports one table. How can I make multiple table querys using an object like Criteria?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 26, 2003 12:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
The newer version support creating nested Criteria instances:
Code:
Criteria criteria = session.createCriteria(MyClass.class)
        .createCriteria("myAssociationPropertyNameToMyOtherClass")...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.