• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clarification using Composite Entity

 
dbala subramaniam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • 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
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • 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,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic