>>> On 12 March 2007 at 08:56, in message <[EMAIL PROTECTED]>, "John Indra" <[EMAIL PROTECTED]> wrote: > Hi... > > I am a very happy iBATIS user and I am still new to Java. > > I have this question after reading "Pro Spring" chapter 10, "What is > missing?". From my understanding, the book says if I have 1000 rows > with a column in boolean that need to be map to Boolean object, SqlMap > will create 1000 Boolean objects whereas I will mostly need 2 Boolean > objects right?
I don't know the book, so I could be barking up the wrong tree here but... I think you are confusing objects and primitive data types. An object of type Boolean has a property with a primitive type boolean. The type boolean can be either true or false. Each field/column in a row is returned as an Object (of the relevant type). In this case, your field is being returned as a Boolean object, with it's property set to either true or false. If your table has a column of some character type, then each row would be returned with individual Objects of type String. Does this make sense ? GTG