Hi all,
I'm using CMP 2.0 and CMR to build some zippy EJBs.
I have one entity (Requisition) that has a composition of a send entiy (LineItem). I'm also using the @ejb.value-object feature of XDoclet 1.2 beta 2.
The line item entities have an "Id" field on them that is basically a sequential integer.
My question is: How can I get the set of line items returned so that they are ordered by their Id? (when I call requisition.getLineItems() which is shown below).
thanks, james
For interest, I'm using JBoss 3.2.1, and here's a snippet of my code that shows the relationship:
/** * This is a uni-directional one-to-many relationship CMR method * * @return a java.util.Set of related * com.partnet.rex.ejbi.LineItemLocal. * * @ejb.interface-method view-type="local" * * @ejb.relation * name="requisition-line_items" * role-name="requisition-has-line_items" * target-ejb="LineItem" * target-role-name="line_items-belong-to-a-requisition" * target-cascade-delete="yes" * * @ejb.value-object * compose="com.partnet.rex.vo.LineItem" * compose-name="LineItem" * members="com.partnet.rex.ejbi.LineItemLocal" * members-name="LineItem" * relation="external" * type="Set" * * @jboss.target-relation * fk_constraint="true" * fk-column="req_id" * related-pk-field="reqId" */ public abstract java.util.Set getLineItems();
------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
