Leslie Hughes
2004-08-17 00:26:08 UTC
Hi,
I'm getting a CMR/CMP problem when I try to call create with a VO instance.
In the Middlegen generated ejbCreate method (which takes a VO as a param)
the generated code is calling a setter on a CMP field that holds the FK.In
other words, instead of setting the relationship in the ejbPostCreate via a
Local to the other bean, it's trying to set the (integer) FK directly with
something like setFoo(vo.getFoo()). This causes Weblogic to complain at
runtime.
If I set FKCMP="false" then I get compilation errors - the same copy from VO
create code is generated and setters are being called but of course, the
setter itself isnt generated.
If I comment out the setters everything works just fine.
So I guess this is a bug in Middlegen - it shouldn't be generating VO fields
for CMR fields maybe?
Bye
Les
I'm getting a CMR/CMP problem when I try to call create with a VO instance.
In the Middlegen generated ejbCreate method (which takes a VO as a param)
the generated code is calling a setter on a CMP field that holds the FK.In
other words, instead of setting the relationship in the ejbPostCreate via a
Local to the other bean, it's trying to set the (integer) FK directly with
something like setFoo(vo.getFoo()). This causes Weblogic to complain at
runtime.
If I set FKCMP="false" then I get compilation errors - the same copy from VO
create code is generated and setters are being called but of course, the
setter itself isnt generated.
If I comment out the setters everything works just fine.
So I guess this is a bug in Middlegen - it shouldn't be generating VO fields
for CMR fields maybe?
Bye
Les