Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Entity Beans +BMP Doubt

 
satheesh krishnaswamy
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Suppose if I have two Tables and I want to Write only one Entity Beans.I want to use Bean Managed Persistence.How do I do this.I am asking this doubt because the getPrimaryKey(),ejbCreate() methods cannot return primary keys for two tables,Right.
Can anyone help me in this regard.
Thanks in advance
With kind Regards
Satheesh.K
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello satheesh ,
Suppose if I have two Tables and I want to Write only one Entity Beans


Why. Just curious to know the reason. Is it because you want to do some rnd.

Entity beans represent a row in the database. One entity. If you have two tables each having its own primary key then we are talking about two entities and each entity should be represented by a different entity bean instance.

Hope it helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic