0 votes
14 views

What are the key components of persistence API in EJB?

in Technology by (192k points)

1 Answer

0 votes

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.

by (192k points)

Related questions

0 votes
1 answer 14 views
14 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 15 views
15 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 20 views
0 votes
1 answer 24 views
24 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 13 views
13 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 13 views
13 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 18 views
18 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 43 views
43 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 15 views
15 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 22 views
22 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 28 views
28 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 23 views
23 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 13 views
13 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 14 views
14 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 8 views
8 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 13 views
13 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 8 views
8 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 16 views
16 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 11 views
11 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 35 views
0 votes
1 answer 23 views
23 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 15 views
15 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 8 views
8 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 15 views
0 votes
1 answer 16 views
...