-->
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.  [ 3 posts ] 
Author Message
 Post subject: Criteria Queries in inherited classes
PostPosted: Thu Jan 15, 2004 2:21 pm 
Beginner
Beginner

Joined: Fri Nov 28, 2003 11:21 am
Posts: 49
Location: Buenos Aires, Argentina
Hello:

I have to retrieve from the DB ,all the products with the following criteria:
lasSecciones = GuiSGP.session.find("from Seccion where F_IdSuplemento =" + idProducto + " and A_Habilitado =" + 1 + " and A_BajaLogica =" + 0);

Since the relation is bidirectional ,using:
ListaSuplementos losSuplementos =new ListaSuplementos(unProducto.getSuplementos()) ;
Retrieves all the elements ,does exist a way to retrieve the elements with a criteria like habilitado = true ,using the setters and getter of a class.
Like Criteria Queries (chapter 14 ,reference).

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 3:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
I don't get what you mean? Probably example queries would help you?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 3:35 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Show the whole mapping please.

_________________
Emmanuel


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