What is the difference between EJB 3.0 and JPA 1 Answer(s) 5 years and 5 months ago
Posted in : Framework
November 25, 2008 at 3:57 AM
The Java Persistence API, sometimes referred to as JPA, is a Java programming language framework that allows developers to manage relational data in Java Platform, Standard Edition and Java Platform, Enterprise Edition applications.
Persistence consists of three areas:
* the API, defined in the javax.persistence package * the Java Persistence Query Language * object/relational metadata
Hibernate is an Open_source Object-relational_mapping framework for Java
hibernate is a ORM(object relation mapping ) tool which can be used for creating a mapping between plain java bean objects (POJO) and a persitent storage (rdbms). The EJB 3.0 specififcation is divided into two parts the first which deals with session and MDBs and the second which deals with persistence and entity beans. The latter part is called JPA(java persistance API ). HIbernate 3.0 implements the JPA specification. EJB 2.1 is a specification for defining loosely coupled reusable business componenets.ans 2 & 3 ) EJB 2.1 and hibernate serve two different purposes. Hibernate can be co related with the entity beans in EJB 2.1. HIbernate offers far more extensive features then plain entity beans.still there are no containers (applicaiton servers) available which fully implement the EJB 3.0 specification. depending upon the buisness needs hibernate framework can be used in conjuction with EJB2.1 to achieve the JPA abstraction.
Difference between EJB 2 and EJB 3 - EJB DifferencebetweenEJB 2 and EJB 3 I know we dont implement home and remote interfaces.
1)Do we have ejb-jar.xml in EJB3.0...? What do they exactly do?
4) How does the bean lookup start in EJB 3 and how
What is the difference between a JDK and a JVM? What is the differencebetween a JDK and a JVM? Hi,
What is the differencebetween a JDK and a JVM?
JDK is stand... to compile your source files using a JVM.
For more differencebetween JDK and JVM
What is difference between Path and Classpath? What is differencebetween Path and Classpath? hi
What is differencebetween Path and Classpath?
The Path & Classpath are used for operating system level environment variales. We mostly use Path
What is difference between TRUNCATE & DELETE What is differencebetween TRUNCATE & DELETE What is differencebetween TRUNCATE & DELETE?
The DELETE command is used to remove rows from a table. A WHERE clause can be used to only remove some rows
1) Java is a Object Oriented programming language developed by Sun Microsystems
What is the difference between GET and POST method? What is the differencebetween GET and POST method? In PHP, both GET... there is a lots of differencebetween the both. Can anyone please explain...;differencebetween get and post method in PHP
POST method is more secure than GET