Question

I'm creating a simple application where i'm going to use object-relational mapping. I heard of eclipselink JPA and did a POC. It seems like working in my local.

I have two question running on my mind.

  1. Is eclipselink tied to the environment? Does the same will work in other environments (production)?
  2. Is there any other provider like eclipselink JPA which gives the same features?
Was it helpful?

Solution

Is eclipselink tied to the environment? Does the same will work in other environments (production)?

Eclipselink is an implementation (RI) for the specification of the Java API for the management of persistence and object/relational mapping with Java EE and Java SE. This is not tied to any specific environment.

Is there any other provider like eclipselink JPA which gives the same features?

The answers in this discussion will give you an idea about this.

OTHER TIPS

The first thing here is to clear up some terminology.

JPA means "Java Persistence API". It is, as the name suggests, just the definition of an API to be used for persistence in Java.

Eclipselink is an implementation of JPA. That is - it is an ORM that conforms to the JPA specifications. It is the reference implementation provided by Oracle and it is the implementation supplied with Glassfish, which is the reference implemenation of a Java EE Application server provided by Oracle.

Hibernate is another JPA provider that has been popular for a long time.

One could debate which one is "better", but they both implement the JPA specifications, so they will both do more than enough for someone starting out using JPA.

Regarding the question about whether it is tied to an environment - it is not tied to a particular application server, it will work in any Java EE application server. It can also be run using Java SE if you don't want to use container managed features.

I suggest reading up on JPA in the Java EE Tutorial: http://docs.oracle.com/javaee/6/tutorial/doc/bnbpy.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top