Home / CSE MCQs / Hibernate-CSE ::

CSE MCQs :: Hibernate-CSE

  1. Which of the following methods hits database always?
  2. A.
    load()
    B.
    loadDatabase()
    C.
    getDatabase()
    D.
    get()

  3. Select the inheritance model which is NOT available in Hibernate
  4. A.
    Tables Per Concrete Class
    B.
    Table Per class hierarchy
    C.
    Table Per sub-class
    D.
    Table Per Object

  5. Which method is easy for a Java programmer to add a criterion?
  6. A.
    HCQL
    B.
    HQL
    C.
    SQL
    D.
    None of the above

  7. Which of these simplifies an Object Relational Mapping tool?
  8. A.
    Data creation
    B.
    Data manipulation
    C.
    Data access
    D.
    All mentioned above

  9. Which of the following are most common configuration methods of Hibernate Configuration
  10. A.
    XML Configuration hibernate.cfg.xml
    B.
    Mapping files and XML Configuration hibernate.cfg.xml
    C.
    web.config
    D.
    http.conf

  11. Which of the following is true about transient state of a persistent entity?
  12. A.
    A new instance of a persistent class which is not associated with a Session
    B.
    A new instance of a persistent class which has no representation in the database
    C.
    A new instance of a persistent class which has no identifier value
    D.
    All of the above

  13. Which of the following are tags of hibernate.cfg.xml?
  14. A.
    SQL variant to generate
    B.
    DTD
    C.
    JDBC connection
    D.
    All of these

  15. Which of these simplifies an Object Relational Mapping tool?
  16. A.
    Data creation
    B.
    Data manipulation
    C.
    Data access
    D.
    All mentioned above

  17. To persist collections of embeddable type, hibernates uses
  18. A.
    OneToMany
    B.
    ElementCollection
    C.
    Both A and B
    D.
    None

  19. Which of the following is not an inheritance mapping strategies?
  20. A.
    Table per hierarchy
    B.
    Table per concrete class
    C.
    Table per subclass
    D.
    Table per class