in Technology by

What are the key components of persistence API in EJB?

1 Answer

0 votes
by

Following are the key components of persistence API in EJB:

  • Entity - A persistent object representing the data-store record. It is good to be serializable.

  • EntityManager - Persistence interface to do data operations like add/delete/update/find on persistent object(entity). It also helps to execute queries using Query interface.

  • Persistence unit (persistence.xml) - Persistence unit describes the properties of persistence mechanism.

  • Data Source (*ds.xml) - Data Source describes the data-store related properties like connection url. user-name,password etc.

Related questions

0 votes
    Calling javax.persistence.criteria.Path.get(String name) fails for the simple class hierarchy detailed below. The ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 15, 2022 in Education by JackTerrance
0 votes
    What are the key components of Hibernate?...
asked Apr 14, 2021 in Technology by JackTerrance
0 votes
    What are the key components in android architecture?...
asked Jan 14, 2021 in Technology by JackTerrance
0 votes
    What are the Spring Boot key components?...
asked Jul 5, 2021 in Education by JackTerrance
0 votes
    Which among the following is the correct API call in Key-Value datastore? (1)put(key) (2)put(value) (3)put(key.value) (4)None of the options...
asked Apr 23, 2021 in Technology by JackTerrance
0 votes
    I'm using EF code first. By convention, I have added a foreign key and a reference to the foreign ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
0 votes
    1-09-20 Computer Ch-6 Photoshop CS6 1) Write down the name of components of photoshop (36 What is Marquee? What ... use of slice tood? Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    Which is the best way for persistence in Redis?...
asked Apr 12, 2021 in Technology by JackTerrance
0 votes
    Which is the default persistence mode in Redis?...
asked Apr 12, 2021 in Technology by JackTerrance
0 votes
    In my Mongo Helm Chart, I am using PVC for Persistence volume. I am using the chart to install ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    In my Mongo Helm Chart, I am using PVC for Persistence volume. I am using the chart to install ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 27, 2022 in Education by JackTerrance
0 votes
    new to play and just trying to follow the video on: http://www.playframework.org/ I'm coming so ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    I have a Java system that receives messages over the network in a proprietary binary format which it needs ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
...