-->
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: Criteria API] Problem with filter, order !
PostPosted: Thu Apr 05, 2007 7:19 pm 
Newbie

Joined: Wed Feb 14, 2007 1:48 pm
Posts: 2
Hi !

I'm trying to create a Criteria on properties of n+i level of my bean :

I have those classes :

PERSONNE
- Name
- Tel
- ADRESSE 1
- ADRESSE 2

With :

ADRESSE
- n°
- way
- COUNTRY

and :

COUNTRY
- name
- code
- money

I want to get Persons with :
- code of Country of Adresse1 = "code1"
- name of country of Adresse2= "name1"
- Tel starting with (99)

The records must be ordered by :
- code1 asc
- way of adresse2




I know this criteria's to borry but I have PB to navigate on the bean hierarchy

Other question : what's the difference between criteria.createAlias() and criteria.CreateCriteria() : I know that the first method does'nt create another instance of criteria bau I don't know the impact of this !


Plz help ;-)


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.