Well, I have tried it a couple of ways. But currently, for the issue listed,
here is what I did (Before any Entities are created at all):

1. I create a blank CreditApplicationLocal with the
CreditApplicationDto.getAppId. I did this because I kept getting "PrimaryKey
Not Found" errors when trying to create the CreditApplicationLocal with a
CreditApplicationDto that contained other items that where not already
created. :-(

2. I take the structure I was sent:
creditAppDto with AppId (with AppId)
|--> BusinessCard (no AppId, no ID)
|-->BusinessLine (no AppId, no ID)
|-->SecuredCard (no AppId, no ID)

2b. Create BusinessCard Entity from the
CreditApplicationDto.getBusinessCardDto() method.
2c. do a creditApplicationLocal.setBusinessCard( businessCardLocal);

3b. Create BusinessLine Entity from the
CreditApplicationDto.getBusinessLineDto() method.
3c. do a creditApplicationLocal.setBusinessLine( businessLineLocal);

4b. Create SecuredCard Entity from the
CreditApplicationDto.getSecuredCardDto() method.
4c. do a creditApplicationLocal.setSecuredCard( securedCardLocal);

If I skip 2, 3, or 4, the last one that I added to the
CreditApplicationLocal get the [Product].appId set. The others do not.



-----Original Message-----
From: Harkness, David [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 2:19 PM
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] RE: CMR Issues/Bug? #2


[EMAIL PROTECTED] wrote:
> I now added a 3rd Product called SecuredCard. Now, the
> BusinessCard and BusinessLine AppId's are blank, but the
> SecuredCard has the AppId. So Only the last Product Added
> gets the AppId.

I'm a bit confused as to exactly where this is failing. From your
previous messages, it sounds like you're creating a bunch of value
objects and passing them to an entity bean. Is this correct? If so, is
it when you're adding the BusCard and BusLine VOs to the Application VO?
Can you write precisely the steps for us? Something like this:

* Create ApplicationVO (it has no ID)
* Create and add BusinessCardVO (no AppId, no ID)
* Create and add BusinessLineVO (no AppId, no ID)
* Create and add SecuredCardVO (no AppId, no ID)
* Send ApplicationVO to EJB layer

I'll try to help, but I'll say up front that I created my own set of DTO
classes. They work similarly to XDoclet VOs, but another team here is
using VOs.

David Harkness
Sr. Software Engineer
Sony Pictures Digital Networks
(310) 482-4756


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to