🧪 JPA MCQ Quiz Hub

JPA MCQ

Choose a topic to test your knowledge and improve your JPA skills

1. What are the JPA @Entity association attributes?




2. JPA implementation is provided by ---?




3. ______ has stated that ideas came from several frameworks, including Hibernate and JDO.




4. What is the Life Cycle Of A Jpa Entity?




5. What's true about the following @Entity association between House and Window? @Entity public class Window { @Id private int winNo; @ManyToOne private House aHouse; } @Entity public class House { @Id private int houseNo; @OneToMany(mappedBy="aHouse") private List windows; }




6. Which annotation is used to create Pk-Fk relation b/w two tables?




7. Object/relational metadata can be specified directly in the entity class file by using annotations, or in a separate ________ descriptor file distributed with the application.




8. What is TRUE about the cascading and cascade mode attributes in Entity Beans?




9. Which attribute of @OneToMany is used to mark an entity as owned?




10. What is the JPA equivalent of hibernate.cfg.xml file?