Acronym for Plain Old Java Object. POJO, or Plain Old Java Object, is a normalJava object class (that is, not a JavaBean, EntityBean etc.) and does not serve any other special role nor does it implement any special interfaces of any of the Javaframeworks.
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.
Posted Date:- 2021-09-04 00:04:45