aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes CMP with Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "CMP with Collection" Watch "CMP with Collection" New topic
Author

CMP with Collection

Safin Ahmed
Greenhorn

Joined: Feb 08, 2006
Posts: 19
Hi

i have a CMP with a Collection of other CMPs (that is, i have a CMR between two CMPs)

Let's say that the CMP Invoice, has a Collection of Line CMPs

How can i add one Line the a given Invoice ?

I've been looking at the CMP and my only option is to get the entire collection, add the Line and then set the collection to the CMP, but i really don't think this is the way to go

Any ideas ?

Thank you
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: CMP with Collection