• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Multiple Tables catered by a single BMP

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can multiple tables be catered by a single BMP or if there are x tables then x BMP's need to be created??
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BMP entity beans' persistence is all done by the bean developer. That means that you can use whatever method you want to load/store the bean's state -- even multiple tables, datasources, anything.
However, note that where entity beans are persisted when using a database is a deployment/server issue. I'm sure some allow you to persist a CMP entity bean to multiple tables if necessary (subsets going to each, that is). In fact, I seem to recall JBoss giving this ability, although my memory sometimes plays cruel jokes on me. You'll have to investigate by looking at the jboss-cmp DTD. (This of course would alleviate you from having to deal with all the BMP issues -- a very good thing!)
By the way, that was my Martha joke for the day. Exciting huh?
 
    Bookmark Topic Watch Topic
  • New Topic