• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CMP and Multiple Tables

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the WebLogic Server 6.1.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic