I think an empty List would make more sense than null, but that's besides the point. It's always setting it to null, even when there are four phone numbers. I get no phone numbers period when I try to avoid N+1.
-james On 2/1/06, Brandon Goodin <[EMAIL PROTECTED]> wrote: > I'm curious here. If you want a List to always be there wouldn't it > make sense to instantiate a list and set it in the constructor of your > Client object? If you do this does ibatis set it to null when there > are no phone numbers? I would prefer that ibatis not make assumptions > about what default values that you want set on your object. If ibatis > is forcing it to null then i think that should be considered a bug and > entered into a bug report. If it does not then I think that it is the > developer's job insure defaults to be set. > > Brandon Goodin > -- James A. Hillyerd <[EMAIL PROTECTED]> Chief Technical Officer - ActiveRain Corp
