Hi Arvin,

I'm not sure what you mean. If you look at the CustomerEJB there is a
Section


     * @ejb.relation
     *      name="customer-account"
     *      role-name="customer-has-account"
     *      target-ejb="Account"
     *      target-role-name="account-belongs_to-customer"
     *      target-cascade-delete="yes"
     * @ejb.value-object
     *      compose="xpetstore.domain.signon.model.AccountValue"
     *      compose-name="AccountValue"
     *      members="xpetstore.domain.signon.interfaces.Account"
     *      members-name="AccountValue"
     *      relation="external"

which shows that the CustomerValue object is composed of an
AccountValue.

This means there is a getAccountValue method from within the
CustomerValue.
Is this not what you wanted?
Brian


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arvin
Arora
Sent: 03 July 2003 10:33
To: [EMAIL PROTECTED]
Subject: AW: [Xdoclet-user] 1-N bidrectional visibility on value objects

Hi Brian !

Thanks for the hint - I checked this out... BUT:

The sample uses an unidirectional Xdoclet relation definition and
additionally handles an userID in the Account Object with normal getter
/ setter - which obviously has to be handled seperately by the
controller. This means that the actual CMR mechanisms is only used one
way...

Perhaps this means that there is no solution in the sense I requested
and the sample is a respective workaround?

Greetings
Arvin
 
NEO Business Partners GmbH

FON +49 (0) 511 123 549 - 0
FAX  +49 (0) 511 123 549 - 49
Mobil +49 (0) 172 51 56 300
 
eMail: mailto:[EMAIL PROTECTED]
Website: http://www.NEO-Partners.com
 
 

-----Urspr�ngliche Nachricht-----
Von: Brian McSweeney [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 3. Juli 2003 11:11
An: [EMAIL PROTECTED]
Betreff: RE: [Xdoclet-user] 1-N bidrectional visibility on value objects

Hi Arvin,
I think this is available in the xpetstore project 
At xpetstore.sourceforge.net.
Check out the relationship between customer and account.
Hth,
Brian


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arvin
Arora
Sent: 03 July 2003 08:46
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] 1-N bidrectional visibility on value objects

Hi all !

 

I learned to appreciate Xdoclet to create J2EE prototypes without beeing
a real J2EE programmer - I mastered most of the CMP etc. stuff - but one
core thing I was not able to solve yet in spite of trying different
approaches:

 

Has somebody got a working Xdoclet sample for a 1-N relation (e.g.
customer-has-many-projects) with value objects where the N-value object
provides getter / setter (or at least getter) for the 1-value object?

 

Thanks and Greetings

Arvin

 

NEO Business Partners GmbH

 

FON +49 (0) 511 123 549 - 0

FAX  +49 (0) 511 123 549 - 49

Mobil +49 (0) 172 51 56 300

 

eMail: mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 

Website: http://www.NEO-Partners.com <http://www.neo-partners.com/> 

 

 



-------------------------------------------------------
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



-------------------------------------------------------
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


-------------------------------------------------------
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



-------------------------------------------------------
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