Re: How to handle null objects in nested ResultMaps

2007-01-29 Thread Stefan Langer
Larry Meadors wrote: On 11/30/06, Stefan Langer <[EMAIL PROTECTED]> wrote: I wonder if this is a feature other people might want so that it is worth filing an enhancement request. I'm thinking along the lines of a special flag on the result node that specifies whether to create an object if a sp

Re: How to handle null objects in nested ResultMaps

2006-12-01 Thread Stefan Langer
Larry Meadors wrote: On 11/30/06, Stefan Langer <[EMAIL PROTECTED]> wrote: I wonder if this is a feature other people might want so that it is worth filing an enhancement request. I'm thinking along the lines of a special flag on the result node that specifies whether to create an object if a sp

Re: How to handle null objects in nested ResultMaps

2006-11-30 Thread Larry Meadors
On 11/30/06, Stefan Langer <[EMAIL PROTECTED]> wrote: I wonder if this is a feature other people might want so that it is worth filing an enhancement request. I'm thinking along the lines of a special flag on the result node that specifies whether to create an object if a specified property is nu

Re: How to handle null objects in nested ResultMaps

2006-11-30 Thread Stefan Langer
Larry Meadors wrote: On 11/30/06, Stefan Langer <[EMAIL PROTECTED]> wrote: Larry Meadors wrote: > Not really, no. > > If you run this SQL in a database tool, it may become apparent > why..there is data there, it's just null. So iBATIS creates that > data...even if it is null. Well the data is th

Re: How to handle null objects in nested ResultMaps

2006-11-30 Thread Larry Meadors
On 11/30/06, Stefan Langer <[EMAIL PROTECTED]> wrote: Larry Meadors wrote: > Not really, no. > > If you run this SQL in a database tool, it may become apparent > why..there is data there, it's just null. So iBATIS creates that > data...even if it is null. Well the data is there because I'm doing

Re: How to handle null objects in nested ResultMaps

2006-11-30 Thread Stefan Langer
Larry Meadors wrote: Not really, no. If you run this SQL in a database tool, it may become apparent why..there is data there, it's just null. So iBATIS creates that data...even if it is null. Well the data is there because I'm doing a left join and there are no pages. This I understand. What I'

Re: How to handle null objects in nested ResultMaps

2006-11-29 Thread Larry Meadors
Not really, no. If you run this SQL in a database tool, it may become apparent why..there is data there, it's just null. So iBATIS creates that data...even if it is null. The quick solution is to look at the data returned, and remove that data if you do not want it there. A better solution migh