Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "CMP with Collection" Watch "CMP with Collection" New topic

CMP with Collection

Safin Ahmed

Joined: Feb 08, 2006
Posts: 19

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
I agree. Here's the link:
subject: CMP with Collection
It's not a secret anymore!