Re: [appfuse-user] Strange search behaviour

2008-06-29 Thread alibehzadian
Dear Matt, I have no problem with search criteria. It works fine with two built-in users (user and admin) but it doesn't work for other users that signed-up or are inserted into sample-data.xml. I have no idea what is wrong. I populate new user with exact same data as built-in user and then searc

Re: [appfuse-user] Strange search behaviour

2008-06-28 Thread Matt Raible
When using query by Criteria, sometimes you have to ignoreZeros(). Matt On Sat, Jun 28, 2008 at 1:19 AM, alibehzadian <[EMAIL PROTECTED]> wrote: > > Hi there, > > I did create a new project with Struts 2 Basic Archetype. I modified the > UserManager(Impl) > and UserDao(Hibernate) and add a new me

[appfuse-user] Strange search behaviour

2008-06-28 Thread alibehzadian
Hi there, I did create a new project with Struts 2 Basic Archetype. I modified the UserManager(Impl) and UserDao(Hibernate) and add a new method: In UserManagerImpl: public List findUsers(DetachedCriteria criteria) { return dao.findUsers(criteria); } In UserDaoHibernate: p