aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes What's the difference between entity beans and entity classes? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "What Watch "What New topic
Author

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

Ethan Zhang
Ranch Hand

Joined: Mar 19, 2008
Posts: 46
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 ]

The Devil Wears Cartier Trinity
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 3212
    
    6
You're right.
Entity class - this is a POJO annotated with @Entity.


Free SCDJWS 5.0 Study Guide - SCDJWS 5.0 Quiz (How to get SCDJWS 5.0 Quiz)
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz
jeff mutonho
Ranch Hand

Joined: Apr 30, 2003
Posts: 271
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

Joined: Nov 07, 2007
Posts: 55
'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


"It would be faithless now to say farewell." (FotR, p. 419)
http://marcels-javanotes.blogspot.com/
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
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.


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What's the difference between entity beans and entity classes?