• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I map single table to different Entity Bean?  RSS feed

 
Amit Savani
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can I map different entity beans to same table?

Can I create a BMP and a CMP entity beans for same table?

Regards,
Amit
 
Pallav Bora
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes You can. But just a clarification , in the strictest meaning of the term, BMP beans are not mapped to any table , unlike CMP Beans. You just access the tables from BMPs
 
Amit Savani
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

Pallav Bora wrote: BMP beans are not mapped to any table , unlike CMP Beans. You just access the tables from BMPs


You mean to say that CMP EntityBean can be mapped to Single table only, while in case of BMP there is no such restriction, am I right?
 
Pallav Bora
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right . When I used BMP Entity bean , from with the BMP Bean I used JDBC to execute queries involving more then one table.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!