• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

entity only or entity bean?

 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am reading Enterprise JavaBean (orielly book) 5 th edition.In that it is mentioned entity bean not entity.
But someone told me that entity beans are not in EJB 3.0
Is entity bean is equivalent to entity?
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that it is mentioned entity bean not entity.


What does this sentence mean? What you are trying to say is unclear.

But someone told me that entity beans are not in EJB 3.0


Not true. Is this mentioned in the book you are reading?

Is entity bean is equivalent to entity?


An Entity Enterprise JavaBean is an object-oriented representation of an entity. They are not the same. An example of an "entity" is a Customer.

A Customer is an entity. A Customer is typically represented in a computer system by a record in a relational database.

Customer (Human) --> One or more records in database --> Customer Entity EJB

Supplier (Company) --> One or more records in database --> Supplier Entity EJB

Account (Business concept) --> One or more records in database --> Account Entity EJB
[ October 20, 2008: Message edited by: James Clark ]
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pradeep,

It is incorrect to refer to EJB 3.0/JPA Entities as Entity Beans. That term refers to EJB 2.x Entity Beans.

Cheers,
Reza
 
pradeep singh
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankx to you all
But it is given in Orielly book 5th edition for EJB 3.0 .So it is wrong mentioned in this book.
[ October 20, 2008: Message edited by: pradeep singh ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it is wrong mentioned in this book.

Yes, if they are talking about JPA entities, then they misused the term.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic