In a nutshell, if a nested Statement or ResultMap is used to populate a non-collection (List) field: * If all columns mapped are null, the field should be null as well. * This should be consistent with lazy loading enabled or disabled.
If it's a collection type (List), then: * If all columns mapped are null, the field should be set to an empty collection. * This should be consistent with lazy loading enabled or disabled. Cheers, Clinton On Mon, Oct 12, 2009 at 2:15 PM, Guy Rouillier <[email protected]>wrote: > Clinton Begin wrote: > >> Only collection properties should be populated when you refer to them >> (empty collections). But complex association types should be null. >> > > Sorry, I'm not comprehending the implications of your last statement. I > have complex (non-primitive) object types in my associations. Are you > saying that from Beta 4 onwards, all such associations will not be populated > if lazy loading is enabled? So if you have non-primitive associations, then > you must disable lazy loading? > > Thanks. > > > -- > Guy Rouillier > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
