Hello everyone,

Customer <-- 1:1 --> Adress

I've got a dependant object, like the Address of a Customer. The addresses are stored in a separate table, with a foreign key pointing to the primary key of the customer table. Both the parent object and the dependant object are implemented as an Entity Bean.

I've already set up a relation with the @ejb.relation and @jboss.target-relation tags.

Now, I want to use the @ejb.value-object tag to make the Customer a Facade of the Address, returning the Address of a Customer as a value object from the Customer Bean to the Client of the Customer Bean.

Unfortunately, http://xdoclet.sourceforge.net/valueobjects.html is terribly bad documented for the case of 1:1 relationships. Which of parameters compose/aggregate, compose/aggregate-name, members, members-name, external and type parameters do I need in the 1:1 case? (which can be omitted?)

Seaching through the XDoclet examples, I discovered CustomerBean.getAddress() and CustomerBean.setAddress() commented out. Adapting this example to my application did not work (did not generate any accessors to the value objects). Did they comment it out because it does not work? In other configurations, XDoclet generated add/remove/update accessors which is not appropriate for 1:1.

Where can I get verbose documentation for the value-objects, and where can I get a working example of a value-object that is based on a 1:1 relation?

I am using XDoclet 1.2 and JBoss 3.23.

Regards,

Andreas



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to