JPA Interview Questions and Answers
Difficulty Level: AllBeginnerIntermediateExperienced/Expert
Ques 1. What is JPA and its features?
Ques 3. What is the difference between persistence.xml and hibernate.cfg.xml?
Ques 4. What is an EntityManager?
Ques 7. What is Embeddable classes?
Ques 8. What is Persistent Fields?
Ques 9. What is Persistent Properties?
Ques 10. Explain Life Cycle of a JPA Entity.
Ques 12. Example of an Entity with Embedded class.
Ques 13. Give an example of Embeddable class for previous question Categoryparticipant entity.
Ques 14. Insert a record mechanism using JPA.
Ques 15. How to fetch a record using NamedQuery?