• Post Reply Bookmark Topic Watch Topic
  • New Topic

Table join handling in Entity Bean and EJB-QL

 
Benson Fung
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
We are using CMP to handle the database access. For the single table access, we can write Entity Bean with corresponding EJB-QL to do. However, I don't know how to handle the table join situation.
If you anyone is familiar with that, please help.
Please teach me with sample code. That will be great!

Thanks
Benson
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In short, mapping a single CMP Entity Bean to multiple tables can only be done if your Application Server supports it and then it has to be done in a vendor-specific way.
See this thread on the same topic.
 
Benson Fung
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Chris,
Thanks for your help. Actually, we are using jboss. From your knowledge, does it support that?

Thanks
Benson
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!