Java Mailing List Archive

Home » user-java.ibatis »

Ibatis 3 and null values

Laurent MANNS


Replies: Find Java Web Hosting

Author LoginPost Reply

I'm facing a weird problem when resultType is a Map :

<select id="test" resultType="java.util.LinkedHashMap">
  getDate() "Timestamp",
  null    "Test"

List<LinkedHashMap<Object, Object>> lignes = session.selectList("test");
for (Iterator it = ((LinkedHashMap<Object, Object>)  
lignes.get(0)).keySet().iterator(); it.hasNext();)
The result is :


Why is first column duplicated when the alias is in lowercase ? And why can't i
get the second column header when it contains null values ?

Any help would be appreciated.


To unsubscribe, e-mail: user-java-unsubscribe@(protected)
For additional commands, e-mail: user-java-help@(protected)

©2008 - Jax Systems, LLC, U.S.A.