How to Connect an Entity Bean to two db tables using CMP
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Atif_Umar
Posted On:   Thursday, August 2, 2001 02:31 AM


I need to connect my entity bean to 2 separate tables; On Create of the entity bean I should be able to insert record into 2 tables ,where each table has different fields?



Another thing i have been able to do this using BMP but how to do it with CMP ?



Please tell me how will i map two or more than two tables in the deployment descriptor , i am working on Weblogic Server

Re: How to Connect an Entity Bean to two db tables using CMP

Posted By:   Adnan_Rafiq  
Posted On:   Friday, August 3, 2001 08:55 AM

Most vendors provide tools to map CMPs to multiple tables. For example, Visual Age has a Persistence Builder tool which helps map your CMP to multiple tables.

Re: How to Connect an Entity Bean to two db tables using CMP

Posted By:   Naveed_Azhar  
Posted On:   Thursday, August 2, 2001 03:19 AM

Hello there!!

Why dont you make 2 entity beans and use a session bean method to manipulate those ejb instaneces. Moreover, you can define transaction attributes according to your requirement.

Naveed Azhar

naveed@hotmail.com
About | Sitemap | Contact