Hello, 

There was an open issue in JIRA regarding the generated code in 
SomeBeanCMP.java , with respect to 1:1 CMR with the value objects. 

The code generated here did not check to see whether the dependent value 
object was created yet, and therefore, if it was a new dependent object, 
would result in an ObjectNotFoundException (in the call "findByPrimaryKey"): 

          // Anonymous block to allow variable declations without 
conflicts
          {
        // Checks for null composition
        if (valueHolder.getCreditCardValue() != null)
        {
                 java.lang.Integer pk = 
valueHolder.getCreditCardValue().getCreditCardUId();

                 rpmaster.server.data.beans.CreditCardLocalHome home = 
rpmaster.server.data.beans.CreditCardUtil.getLocalHome();

                 rpmaster.server.data.beans.CreditCardLocal relation = 
home.findByPrimaryKey(pk);
                 
relation.setCreditCardValue(valueHolder.getCreditCardValue());
        }


Somebody had posted a patch to the template code which fixed this, and I 
was wondering if somebody had it and could post it here since JIRA is down 
? 

I apologize but I dont know the xdt language otherwise would try to fix it 
myself. Any help greatly appreciated. 
 
Thanks 

Nat

p.s. the source I'm using is the 1.2b3 released from the website. I 
checked the CVS and it didnt seem to be updated there either... 



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to