Hi all,
I'm using Xdoclet CVS version with CMP2 and value-objects.
Now I've to implement a bidirectional self-relationship and don't know
how to do. The behaviour should be, that if I insert an object in the
one relation, it should be inserted in the target-relation as well.
Clearly:
public abstract EventBean implements EntityBean {
...
/**
* @ejb.interface-method
* @ejb.relation
* name="event-notCombineables"
* role-name="event-is-not-combineable-with"
* target-ejb="program.Event"
* target-role-name="event-is-not-combineable-with"
* target-multiple="true"
* @jboss.relation
* fk-column="fk_event1"
* related-pk-field="id"
* @jboss.target-relation
* fk-column="fk_event2"
* related-pk-field="id"
* @jboss.relation-table
* table-name="program_not_combineable_events"
* @ejb.value-object match="full"
*
aggregate="sportbet.server.program.EventLightValue"
* aggregate-name="NotCombineables"
* members="sportbet.server.program.EventLocal"
* members-name="NotCombineables"
* relation="external"
* type="Set"
*/
public abstract Set getNotCombineables();
public abstract void setNotCombineables(Set param);
...
}
The relation says which EventBeans are not combineable with each other.
I'd like to haver automaticly updated the target side if this relation.
Is this possible by Xdoclet or by an useful pattern?
Thanks,
Thomas
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user