Ara has just committed my  first pass at generating ejb-relations. Pull 
the CVS as of 1:20 EST.

Quick HOWTO

On all fields that have relations add @ejb:relation tag to the *getter 
method*.

Attributes
name= This is the name of the relation. This needs to be the same for 
both sides
mutiple= This is optional. If exsists then Multiplicity =Many else One
cascade-delete= This is optional. If there then </cascade-delete> is added
target-ejb= If this is a unidirectional relationship then this must be 
the EJB name of the other side
target-multiple = If this is a unidircetional relationship and the other 
side is a multiplicity of many

So...the classic order/details relationship

Order

/**
@ejb:relation name="Order-Detail"
*/
public abstract Collection getOrderdetails();

In OrderDetail

/**
@ejb:relation name="Order-Detail" multiple="yes" cascade-delete="yes"
*/
public abstract int getOrderId();



_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to