[ http://issues.apache.org/jira/browse/IBATIS-273?page=comments#action_12412783 ]
Jeff Butler commented on IBATIS-273: ------------------------------------ The best iBATIS will ever do is return List<Object>. When iBATIS is compiled we have know way of knowing what your return types will be. So you'll always have to do this: List<String> locked = (List<String>) getSqlMapClientTemplate().queryForList("Daemon.getLockInfo", null); This works currently and can be nicely encapsulated in a DAO object for use in the rest of your application.. > Support generics > ---------------- > > Key: IBATIS-273 > URL: http://issues.apache.org/jira/browse/IBATIS-273 > Project: iBatis for Java > Type: Improvement > Components: SQL Maps > Reporter: Reuben Firmin > > Hello, > I know that JDK 1.5 support is not intended yet, so this is just a request > for the future. It'd be great if you could support generics, particularly > from the queryForList object; at the moment I do: > List<String> locked = > getSqlMapClientTemplate().queryForList("Daemon.getLockInfo", null); > ...which compiles fine, but isn't strictly valid, since queryForList just > returns a List, and not a List<T>. > Thanks -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira