Home / CSE MCQs / Hibernate-CSE ::

CSE MCQs :: Hibernate-CSE

  1. In which file database table configuration is stored?
  2. A.
    .dbm
    B.
    .hbm
    C.
    .ora
    D.
    .sql

  3. Which of the following is not a Session method?
  4. A.
    Session.save()
    B.
    Session.remove()
    C.
    Session.saveorupdate()
    D.
    Session.persist()

  5. What does "" means?
  6. A.
    generate primary key
    B.
    generate tables based on configuration
    C.
    generate sql statement on configuration
    D.
    None

  7. Which statement is correct?
  8. A.
    Only the Session that you obtained with sf.getCurrentSession() is flushed and closed automatically
    B.
    Only the Session that you obtained with sf.openSession() is flushed and closed automatically
    C.
    Only the Session that you obtained with sf.getNewSession() is flushed and closed automatically
    D.
    None of the above

  9. In the elements of Hibernate architecture is a factory of session and client of ConnectionProvider,It holds second level cache (optional) of data?
  10. A.
    Connection Provider
    B.
    Session
    C.
    Session Factory
    D.
    Transaction