ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "OBender" <osya_ben...@hotmail.com>
Subject constructor result mapping with primitives doesn't work
Date Mon, 23 Nov 2009 15:34:06 GMT
Hi All,


There is one very strange issue. If there is a constructor with primitive
argument, say long and you have a mapping with:

<resultMap type="T1" id="T1Result">


            <arg column="xxx" javaType="long" />





public class T1


                final private long xxx;


                public T1( long xxx )  {

                                this.xxx = xxx;





The execution fails trying to find constructor with java.lang.Long type
instead of primitive long type.


Is this a bug or constructors with primitive types are not supported?



View raw message