This content has been marked as final.
Show 2 replies
-
1. Re: EntityQuery - Restrictions usage query!
rmemoria Oct 8, 2007 12:20 PM (in response to rnallakukkala)Hi,
It's quite simple.
Do something like that. Inside your EntityQuery class declare your restrictions:private String[] restrictions = {"inidate = #{mybean.date}", "name like upper(#{mybean.name} + '%')" };
and now override getRestrictions() like that:@override public List<String> getRestrictions() { return Arrays.asList(restrictions); }
Please forgive me if I wrote some declaration wrong, but it's all I can remember up to now.
Regards,
Ricardo -
2. Re: EntityQuery - Restrictions usage query!
rnallakukkala Oct 8, 2007 2:36 PM (in response to rnallakukkala)it got simple with your reply! Thanks Ricardo