|
I once answered something like this, see http://www.mail-archive.com/[email protected]/msg01481.html Maybe the developers can comment on this
one, since the original thread lacks their opinion. Niels From: MCCORMICK, Paul
[mailto:[EMAIL PROTECTED] I have set enhancementEnabled="true"
and lazyLoadingEnabled="true"
in the SqlMapConfig A problem exists when the lazy loaded object is null.
Using the enhancementEnabled="true" option causes enhanced
lazy loaded object to be returned from a getter even if the lazy query returned
no rows. Calling any method on the enhanced object causes a null pointer
exception. For example. There is a 1 to 0..1 relationship between
Foo and Bar. // Now here is the test that fails if set enhancementEnabled="true" If enhancementEnabled="false" then
the test work. Is this a bug or have I misunderstood enhancementEnabled what
the flag does? I'm using version 2.2.0.636. Thanks,
|
Title: enhancementEnabled and lazyLoadingEnabled problem.
- enhancementEnabled and lazyLoadingEnabled problem. MCCORMICK, Paul
- RE: enhancementEnabled and lazyLoadingEnabled problem... Niels Beekman
