• 1. 
    5.We need to specify @Inheritance(strategy=InheritanceType.JOINED) in the parent class and @PrimaryKeyJoinColumn annotation in the subclasses.

  • a. True
  • b. False
  • 2. 
    8.Which of these simplifies an Object Relational Mapping tool?

  • A. Data creation
  • B. Data manipulation
  • C. Data access
  • D. All mentioned above
  • 3. 
    Which of the following methods hits database always?

  • a) load()
  • b) loadDatabase()
  • c) getDatabase()
  • d) get()
  • 4. 
    1. Which of the following is not a core interface of Hibernate?

  • a) Configuration
  • b) Criteria
  • c) SessionManagement
  • d) Session
  • 5. 
    4.Which ways are used by the Log4j and Logback frameworks in hibernate framework to support logging?

  • a. By log4j.xml file
  • b. By log4j.properties
  • c. Both A & B
  • d. None of the above
  • 6. 
    3. Which of the following is not an advantage of Hibernate Criteria API?

  • a) Allows to use aggregate functions
  • b) Cannot order the result set
  • c) Allows to fetch only selected columns of result
  • d) Can add conditions while fetching results
  • 7. 
    7.Which of the following is NOT a mapping association used in Hibernate?

  • A. Many-to-Many Association
  • B. One-to-Many Associationcorrect
  • C. One-to-One Association
  • D. None
  • 8. 
    6.Abbreviate the term HQL?

  • a. Hibernate Queue Language
  • b. Hibernate Query Language
  • c. Hipher Query Language
  • d. None of the above
Report Question