19th September 2018

infoq
7

Is JPA a framework?

While some of the other covered frameworks "may" be standards-based (built on standards), the Java object-relational mapping persistence framework that is itself a standard is the Java Persistence API. There is a one-way dependency between EJB 3.0 and JPA.

Regarding this, why do we need JPA?

Java Persistence API (JPA) Data Persistence is a means for an application to persist and retrieve information from a non-volatile storage system. Persistence is vital to enterprise applications because of the required access to relational databases.

What is the JPA?

The Java Persistence API (JPA) is a Java specification for accessing, persisting, and managing data between Java objects / classes and a relational database. JPA was defined as part of the EJB 3.0 specification as a replacement for the EJB 2 CMP Entity Beans specification. JPA also requires a database to persist to.

What is hibernate and what is it used for?

Hibernate ORM (Hibernate in short) is an object-relational mapping tool for the Java programming language. It provides a framework for mapping an object-oriented domain model to a relational database. Hibernate also provides data query and retrieval facilities.
Write Your Answer

Rate

100% people found this answer useful, click to cast your vote.

5 / 5 based on 1 vote.

Bookmark

Press Ctrl + D to add this site to your favorites!

Share