Actually, in the Invoice bean class, you should declare the following method that represents the invoicePositions CMR field: public abstract Collection getInvoicePositions(); The returned Collection will contain InvoicePositionLocal references.
And now, your deployment descriptor should look like:
Note that you can freely change the content of ejb-relation-name, ejb-relationship-role-name.
And depending on your application server you still have to write the vendor-specific deployment descriptor for mapping the CMR fields to the proper columns in your database.
Or you use XDoclet and you write everything in the source file [ July 28, 2004: Message edited by: Valentin Crettaz ]
Joined: Feb 24, 2004
Can I map the CMR Field getInvoicePositions() to a PrimaryKey field ? I get always an error. Is it possible to use Number of the PK for the CMR field ??? (If it is possible, then I have to read the jonas documentation twice).
Or have I to insert an own column for the CMR filed, that holds the same value as the Number of the PK (I thik not)???
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com