• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What's the difference between entity beans and entity classes?

 
Ethan Zhang
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In objectives of part1:

they said:

-----------------
# Explain and contrast uses for entity beans, entity classes, stateful and stateless session beans, and message-driven beans, and understand the advantages and disadvantages of each type.
# Explain and contrast the following persistence strategies: container-managed persistence (CMP) BMP, JDO, JPA, ORM and using DAOs (Data Access Objects) and direct JDBC technology-based persistence under the following headings: ease of development, performance, scalability, extensibility, and security.
-----------------

http://www.sun.com/training/catalog/courses/CX-310-052.xml

What's the difference between entity beans and entity classes? Entity beans is easy to understand which is the one has bad reputation in pre-EJB3.0 and is replaced by new one JPA in EJB3.0.

But what's entity classes? JPA's POJO class used in EJB3.0?

Thanks.
[ March 19, 2008: Message edited by: ETHAN Z ]
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're right.
Entity class - this is a POJO annotated with @Entity.
 
jeff mutonho
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ETHAN Z:
In objectives of part1:

they said:

-----------------
# Explain and contrast uses for entity beans, entity classes, stateful and stateless session beans, and message-driven beans, and understand the advantages and disadvantages of each type.
[ March 19, 2008: Message edited by: ETHAN Z ]


I thought in Java EE 5 we no longer have Entity Beans , but just Entities? Why does the objective talk about Entity Beans?
 
Marcel Dullaart
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'Officially' there are still Entity Beans in JEE5, but in effect these are the same as the entity beans as defined in J2EE 1.4, these are kept for backwards compatibility, but it is strongly advised to use JPA instead.

Cheers,
marcel
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jeff mutonho:


I thought in Java EE 5 we no longer have Entity Beans , but just Entities? Why does the objective talk about Entity Beans?


Java EE 5 has Entity Beans, but it's just the same Entity Beans as in J2EE 1.4.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic