• 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

Clarification using Composite Entity

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My requirement
I have Controller and Bean- which inturn process few functions few mapped with Entity , Statefull, Stateless beans , but Controller and Bean invoke
one by one based on the response it will decide to invoke next one or not, even invoke other one based on response either it may need to commit all or rollback all ,
Is it ideal situation to use Composite Entity
please clarify
Advanced Thanks
with regards
bb
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, composite entity is something different.
Composite entity( aka aggregate entity ) helps you manage several related entities as one entity bean. Suppose a customer has multiple addresses and a few bank accounts, instead of modelling all three( Customer, Account, Address ) as different entity beans, you create a coarse grained aggregate entity bean called Customer and manage the lifecycles of associated accounts and addresses within the context of the Customer.
Hope that helps,
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic