Posts

Showing posts from August, 2023

JPA Interview Questions

1) What is the Java Persistence API? The Java Persistence API (JPA) is the specification of Java that is used to persist data between Java object and relational database. JPA acts as a bridge between object-oriented domain models and relational database systems. As JPA is just a specification, it doesn't perform any operation by itself. It requires an implementation. Therefore, ORM tools like Hibernate, TopLink, and iBatis implements JPA specifications for data persistence. The first version of the Java Persistence API, JPA 1.0 was released in 2006 as a part of EJB 3.0 specification. 2) Does JPA performs the actual task like access, persist and manage data? No, JPA is only a specification. The ORM tools like Hibernate, iBatis, and TopLink implements the JPA specification and perform these type of tasks. 3) What is the object-relational mapping? The object-relational mapping is a mechanism which is used to develop and maintain a relationship between an object and the relational data...