wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes CMP and Multiple Tables 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 and Multiple Tables" Watch "CMP and Multiple Tables" New topic
Author

CMP and Multiple Tables

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
How do I access multiple tables using CMP? Do I specify different tables in the deployment descriptor? or I should use multiple joins in SQL statements?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
In many application servers you can't map CMP's to multiple tables. It's just not possible. In those application servers that allow it, it is unique to each application server. If you will tell us which application server (and version) you are using, we could possibly give you some advice as to if, or how it can be done.
In any case, the spec is totally silent on the issue of mapping to database tables, so it won't be in the deployment descriptor anyway -- usually it's in some "extra" file or descriptor unique to the vendor.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I am using the WebLogic Server 6.1.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CMP and Multiple Tables
 
Similar Threads
how to use multible tables in ejb
CMP and Joins
Entity bean representing a query
Mapping Two Tables to Same CMP Bean?
Mapping 4 database tables using single CMP bean