• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Conflicting description of home business methods in HFE

 
Ming Hu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In P325, under section "three ways to get a reference to an entity bean", it reads "Client calls a home business method that returns a reference to the bean's component interface".
In P346, under "What to put in a home business method", it reads "Put code in your home business methods that apply to the underlying database-for a group of entities rather than one specific entity-and that don't return the bean's component interface".
Is this an error or am I missing something? Thanks.
 
Anthony Watson
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any method in the home can return a component interface type. You do not need a reference to a specific bean to call a home method.
 
Ming Hu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the input, Anthony.
I guess the real question should be: what can or should an entity bean's home business method return? Anything including the bean's component interface? Regarding the component interface, is it those create and find methods are there for?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic