• Post Reply Bookmark Topic Watch Topic
  • New Topic

entity beans  RSS feed

 
Sudha Shah
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can more than one table be represented in one single entity bean? Thanks.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
Nilesh Nadiyana
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting. Could you please suggest, How is this possible? Probably using some tools? or supported by the specific App Server ?
 
Nilesh Nadiyana
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok. Weblogic 7.0 has direct facility to do this.
 
Sergiu Truta
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you may use BMP and so you can code the entity bean to insert/update/delete data in as many tables as you want. If you use CMP you should use a entity for a single table and if you have related data in related tables you can use container managed relationships.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!