queryForList returns only one row even though SQL query returns many

2008-01-11 Thread dandante
Hi, I have an IBATIS select query. I also have logging at the DEBUG level so I can see what queries are sent to my database (mysql). When I call this query from a unit test, using queryForList(), it only returns one row. However it prints out the following to the console: 15:18:27,696 DEBUG Prep

problem returning primitive types from a query

2008-01-07 Thread dandante
In my bean I have the following properties defined along with their corresponding getters and setters: int ownerId; boolean isPrivate; In my result map I map these columns as follows: Then I run a query that returns this result map. I get the following error: java.lang.RuntimeEx