File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Architect Certification (SCEA/OCMJEA)
JPA vs Entity Bean
Joined: Oct 11, 2004
Oct 09, 2007 23:07:00
It looks very weird question but please share your thoughts.
What are the advantages and disadvantages of using JPA over Entity Bean?
My points are:
1.JPA uses POJO classes, that makes it lighter.
2.POJO classes can implement Serializable interface, so no need for DTO.
3.No need for
container (or Application Server).
1.Being a new technology, time required for developers to understand and code.
Please put more points.
[ October 09, 2007: Message edited by: ankur rathi ]
Joined: Dec 02, 2004
Oct 10, 2007 03:22:00
JPA allows you to have a really OO models using inheritance and
JPA allows you to choice the implementation you will use (this one provided by the AS, Hibernate, Toplink,...)
JPA can be used directly in the web tier... Its is possible to use JPA without EJB...
Joined: Sep 19, 2007
Oct 10, 2007 03:42:00
POJOs can be tested easily, since they do not require a special environment like an EJB Container.
Joined: Jul 01, 2007
Oct 10, 2007 12:36:00
Easy configuration via metadata support
Joined: Nov 10, 2005
Oct 10, 2007 19:31:00
JPA is usable not only for JavaEE but also for JavaSE.
Noel Q. Anonas, SCJA, SCJP, SCEA5 (part 1)
Joined: Sep 22, 2007
Oct 10, 2007 21:38:00
JPA is used for persistence to relational databases, whereas Entity Beans (BMP) can persist on to any datasource (legacy systems, OODB, non-relational datasources etc).
JDO specification also allows for storage to RDBMS, OODBMS, files, XML etc.
[ October 14, 2007: Message edited by: chris zielinski ]
Joined: Oct 11, 2007
Oct 11, 2007 05:57:00
I think JPA allows us to model coarse-grained objects - by using OO design relationships - such as inheritance, etc. Entity bean, due to their nature probably, in my opinion, suited towards fine-grained objects.
I agree. Here's the link:
subject: JPA vs Entity Bean
questions about the class diagram
Right Stereotype for EJB3 and annotations
Advantages of EJB 3 over the previous versions and in general ?
Newbie Question: What's the relationship between JPA and EJB?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015