• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Saloon Keeper
Posts: 3946
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're right.
Entity class - this is a POJO annotated with @Entity.
 
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Dinner will be steamed monkey heads with a side of tiny ads.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic