I have a list of object where I want to iterate and access a particular field in ibatis sql.
Ex.
public Class Student { String id; String name; } <
Try something like:
select * from STUDENTS where ( id, name ) in ( #[].id# , #[].name# )
where id and name are fields of Student class and my parameterClass is List.
id
name
Student
parameterClass
List
Worked for me.
The sql formed dynamically will look like:
select * from STUDENTS where ( id, name ) in ( (1,'a'), (2,'b') )