Well, first I would like to say that your point of view is understandable,
given that there is no official documentation for the valueobject task yet.
I am not the expert on this, but it seems that the motivation for the
valueobject task is to replace dataobject, adding features for CMR in EJB 2.
This would allow for generation of a value object graph representing your
entities.  It already works well if you only allow relationship traversal in
one direction.

For example, entity A is related to entity B.  A's interface has a getB()
method, and B's interface has a getA() method.  It is possible to construct
a value object graph and use the relationship in the value object:

AValue a = ((A) instance).getValue();
BValue b = a.getBValue();

but not:

b.getAValue();

I have just developed a technique that fixes this problem, but cannot
release it right now (from behind a wicked firewall).

Andrew

-----Original Message-----
From: Matthias Bohlen
To: Andrew Barkley; [EMAIL PROTECTED]
Sent: 7/17/2002 3:54 PM
Subject: RE: [Xdoclet-user] valueobject and bidirectional relationships

Hi,

I seem to have missed something: can somebody explain to me what a value
object has to do with relationships? A value object should copy only the
attributes, right?

CU...
Matthias

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Andrew
> Barkley
> Sent: Wednesday, July 17, 2002 12:30 AM
> To: '[EMAIL PROTECTED]'
> Subject: Re: [Xdoclet-user] valueobject and bidirectional
> relationships
>
>
> I have a theoretical solution to the bidirectional
> relationships  problem.
> The fundamental problem is the recurrence of  get*Value()
> calls between
> arbitrary beans.  This cycle can get  very complex, so you
> can't simply rely
> on a solution that fixes  the problem between just two beans.
>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to