• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Number of EJBObjects for the same Entity

 
parra matta
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

On page 99 of HFEJB, it says that one entity will have only one EJBObject. However on the bottom of page 142, it says there may be multiple EJB Objects.

May I ask which is right?

Thanks
 
vinod balaji
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
However on the bottom of page 142, it says there may be multiple EJB Objects.


It doesnt say multiple EJB Objects, it says multiple bean..
 
parra matta
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the bottom of page 142, it says

We use the term "bean" here a little loosely because, conceptually, the server uses only one bean to represent a particular entity. So there would be only one bean with a primary key of #42, but clients may have <b>MULTIPLE</b> EJB object references to it.

Can some one explain it?

Thanks
 
parra matta
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the bottom of page 142, it says

We use the term "bean" here a little loosely because, conceptually, the server uses only one bean to represent a particular entity. So there would be only one bean with a primary key of #42, but clients may have <b>MULTIPLE</b> EJB object references to it.

Can some one explain it?

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure about the context, and I don't have the book here, but I imagine that the client may have several EJBObject for that bean (calling findByPrimary("42") several times), but they all relate to a single bean (the #42 bean).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic