[jboss-user] [JBoss Seam] - Re: EntityQuery - Restrictions usage query!

rmemoria do-not-reply at jboss.com
Mon Oct 8 12:20:16 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092653#4092653

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092653



More information about the jboss-user mailing list