Hello, I want to establish a self-referencing CMR - for example, employee-manager CMR. I have a field managerId in the entity. The CMR is to get a list of all employees reporting to that manager :
/** * @ejb.interface-method * * @ejb.relation * name = "managers-employees" * role-name = "manager" * target-ejb = "Employee" * target-role-name = "reporting-group" * * @jboss.relation * related-pk-field = "managerId" * fk-column = "mgrid" * * @jboss.target-relation * related-pk-field = "id" * fk-column = "id" * * @ejb.value-object * relation = "external" * aggregate = "test.interfaces.EmployeeValue" * aggregate-name = "reports" * members = "test.interfaces.EmployeeLocal" * members-name = "reports" * type = "java.util.Collection" * * @return */ public abstract Collection getDirectReports(); My EJB Module project is building with preferredRelation as "relation-table". I guess it is this preference which is casuing the problem ? Can I over-ride the relation-table for this CMR ? How should I do this, if so ? Thanks ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user