๐Ÿงช JPA MCQ Quiz Hub

JPA MCQ

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

What are the JPA @Entity association attributes?





โœ… Correct Answer: 1

JPA implementation is provided by ---?





โœ… Correct Answer: 4

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





โœ… Correct Answer: 3

What is the Life Cycle Of A Jpa Entity?





โœ… Correct Answer: 4

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; }





โœ… Correct Answer: 2

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





โœ… Correct Answer: 1

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.





โœ… Correct Answer: 1

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





โœ… Correct Answer: 1

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





โœ… Correct Answer: 2

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





โœ… Correct Answer: 2