ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rashmi Dave" <rash...@persistent.co.in>
Subject [Abator] selectByExample not working?
Date Mon, 06 Feb 2006 05:37:51 GMT
Hi Jeff,

I am using Abator generated DAO classes to fire queries against the tables.

I would like to select those rows in a table where the ACTIVE column is "Y".
For this my code reads

RolesExample roleExl = new RolesExample();
roleExl.setIsActive("Y");
        
List roleGrps = roleDAO.selectByExample(roleExl);

I would like this to generate a WHERE ACTIVE = 'Y' in the select query.

However, I find that the list being returned has all the rows in the table.
Not sure if I am using this right. Can you please help?

Thanks in advance

Cheers!
Rashmi


Mime
View raw message