• 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

Multiple Tables catered by a single BMP

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Get meta with me! What pursues us is our own obsessions! But not this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic