• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Entity Beans +BMP Doubt

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic