Herve Tchepannou wrote:
How can I embeded fields of a CMR in a value object?
If I have 2 bean A and B;
A has the fields :* a1*,* a2* and a relation with B named* b*
B has the fieds :* b1, b2*
What's the syntax of the @ejb.value-object tag if I want to embeded all the fields of B in the value-object of A
Please take a look at http://xdoclet.sourceforge.net/valueobjects.html
The short answer: you'll ned to use the aggregate (or composite) parameters to the @ejb.value-object tag. Suppose you have a getB() method in A. You should tag it like this:
/**
* @ejb.value-object
* aggregate="BValue"
* aggregate-name="B"
*/
public abstract B getB();
Read the document linked above for better explanations.
--
Pazu <[EMAIL PROTECTED]>
-------------------------------------------------------
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
