I have an issue that I am desperately needing help with. I have asked
before, but got no response.
So, let me rephrase the issue I am having. I actually am having 2 major
issues, but I will put them each in their own email in hopes that I can get
them resolved.
Issue #2:
===========================================
I have a CreditApplicationBean that has a 0..1 cmr with a BusinessCard, and
also with a BusinessLine:
----------------------------------------------------------------------------
-----------
/**
* Get BusinessCard product for this CreditApplication.
* This is a one (CreditApplication) to one (BusinessCard)
relationship.
* We can get a BusinessCardDto in the
creditApplicationDto.getBusinessCard() method.
* We can also setBusinessCard( pBusinessCard )
*
* @ejb.interface-method view-type="local"
*
* @ejb.value-object
* compose="com.wf.bd.ice.product.BusinessCardDto"
* compose-name="BusinessCardDto"
* members="com.wf.bd.ice.product.BusinessCardLocal"
* members-name="BusinessCard"
* relation="external"
*
* @ejb.relation
* name="CreditApplication-BusinessCard"
* role-name="CreditApplication-has-BusinessCard"
* target-ejb="BusinessCard"
* target-role-name="BusinessCard-belongs_to-CreditApplication"
* target-cascade-delete="yes"
*
* TODO: We may be required to add an additional column
* to the Business view to support the 1 -- 1
* relationship of the BusinessCard and CreditApplication
*
* @weblogic.target-column-map
* foreign-key-column="applicationId"
* key-column="applicationId"
*/
public abstract com.wf.bd.ice.product.BusinessCardLocal
getBusinessCard();
/**
* @ejb.interface-method view-type="local"
**/
public abstract void setBusinessCard(
com.wf.bd.ice.product.BusinessCardLocal pBusinessCardLocal );
/**
* Get BusinessLine for this CreditApplication.
* This is a one (CreditApplication) to one (BusinessLine)
relationship.
* We can get a BusinessLineDto in the
creditApplicationDto.getBusinessLine() method.
* We can also setBusinessLine( pBusinessLine )
*
* @ejb.interface-method view-type="local"
*
* @ejb.value-object
* compose="com.wf.bd.ice.product.BusinessLineDto"
* compose-name="BusinessLineDto"
* members="com.wf.bd.ice.product.BusinessLineLocal"
* members-name="BusinessLine"
* relation="external"
*
* @ejb.relation
* name="CreditApplication-BusinessLine"
* role-name="CreditApplication-has-BusinessLine"
* target-ejb="BusinessLine"
* target-role-name="BusinessLine-belongs_to-CreditApplication"
* target-cascade-delete="yes"
*
* @weblogic.target-column-map
* foreign-key-column="applicationId"
* key-column="applicationId"
*/
public abstract com.wf.bd.ice.product.BusinessLineLocal
getBusinessLine();
/**
* @ejb.interface-method view-type="local"
**/
public abstract void setBusinessLine(
com.wf.bd.ice.product.BusinessLineLocal pBusinessLineLocal );
Now, in my CreditApplicationManager, I create the BusinessCard and
BusinessLine before I create the CreditApplication due to not being able to
successfully find another way to do it with the errors I have gotten. So,
here is my method call to save each product:
-------------------------------------------------------------------------
createBusinessCard( pCreditApplicationDto, bankAccountLocalHome,
creditApplicationLocal );
createBusinessLine( pCreditApplicationDto, bankAccountLocalHome,
creditApplicationLocal );
In each of those methods, I make a call like:
---------------------------------------------------------------------
creditApplicationLocal.setBusinessCard( businessCardLocal );
or
creditApplicationLocal.setBusinessLine( businessLineLocal );
Now, when I do just the BusinessCard, the applicationId if the BusinessCard
gets set.
When I add the BuisinessLine also, the BusinessLine:applicationId gets set,
but now the BusinessCard:applicationId does _NOT_ get set!
Arrrrrrrrrrrrrrrrrg!
Please help me!
---
> Thanks...
> Mick Knutson
>
> 525 Market Street, SF, CA 94103
> (415) 222-1020
> [EMAIL PROTECTED]
> MAC A0103-223
---
-------------------------------------------------------
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