-->
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: Query over String arrays owned by an object
PostPosted: Mon May 24, 2004 9:31 am 
Beginner
Beginner

Joined: Fri Oct 17, 2003 4:11 am
Posts: 40
I'd like to filter a String array with a criteria... what is the reference that i must put in my Expression.eq?
Or there is another way to make this criteria query? Maybe with Filter?

This is my code with "??" where is the problem...
Code:
Criteria criteria=session.createCriteria(HAz.class);
HAz az=new HA();
Example example=Example.create(az);
example.excludeProperty("prov");
criteria.add(example);
criteria.createCriteria("prov").add(Expression.eq("??","RO"));
List list=criteria.list();


Thanks to any help!
Gio


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.