aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes CM Relationship from CMP bean to BMP bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "CM Relationship from CMP bean to BMP bean" Watch "CM Relationship from CMP bean to BMP bean" New topic
Author

CM Relationship from CMP bean to BMP bean

Richard Carr
Greenhorn

Joined: Apr 15, 2003
Posts: 17
Hi,
Can I declare a unidirectional CM Relationship from
a CMP bean to a BMP bean?
I will have a complex of CMP beans persisted in one database. I have to make use of some existing data in a second DB and plan to encapsulate that as a simple BMP bean (I can't modify the schema). I'll want to access that BMP bean from one of the CMP beans - a CM relationship seems the simplest solution.
Or must the targets as well as the sources of CM relationships be CMP beans?
Thanks,
Rich.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Only CMP Beans can participate in Container Managed Relationships.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CM Relationship from CMP bean to BMP bean
 
Similar Threads
CMP beans can have relationship with BMP beans?
Whether to use BMP or CMP
Managed Persistance
Relationship between CMP and BMP
Relationship between CMP and BMP entity