1.The core API used to access a database
[ Choose ] JPQL Element Entity Annotations JDBC Persistence Unit JPA Entity Manager
2.An xml file that provides database connectivity information
[ Choose ] JPQL Element Entity Annotations JDBC Persistence Unit JPA Entity Manager
3.A Java class that is mapped to a database table
[ Choose ] JPQL Element Entity Annotations JDBC Persistence Unit JPA Entity Manager
4.The newer API that makes accessing a database easier
[ Choose ] JPQL Element Entity Annotations JDBC Persistence Unit JPA Entity Manager
5.These are added to a Java class to make it an entity class
[ Choose ] JPQL Element Entity Annotations JDBC Persistence Unit JPA Entity Manager
1. The core API used to access database is
JDBC
(Java DataBase Connectivity) It has a set of Java classes and methods that allow embedding of database calls in server applications.
2. An xml file that provides database connectivity information
- Persistence Unit
A persistance unit is a xml file that contains definitions for database connectivity infomrations.
3. A Java class that is mapped to a database table
- Entity Manager
Entity Manager will create the entitymanger instance by using createEntityManager () method. The entitymanager object creates entitytransaction instance for transaction management. By using entitymanager object, we can persist entities into database.
4. The newer API that makes accessing a database easier
- JPA
Java Persistence API is a collection of classes and methods to persistently store the vast amounts of data into a database.
5. These are added to a Java class to make it an entity class
-Entity
Get Answers For Free
Most questions answered within 1 hours.