Home > MCQs > IT & Programming > Hibernate MCQs

Hibernate MCQ

Hibernate Quick Quiz

Question 1 of 10
  • Which of the following is not TRUE about StatelessSession interface/implementation in Hibernate Batch?

    Answer & Explanation

    Correct Answer: Operations performed using a stateless session cascade to associated instances

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following is NOT true about Hibernate OGM (still being developed)?

    Answer & Explanation

    Correct Answer: It is expected to be used to interact with all NoSQL solution in all use cases

    Note: This Question is unanswered, help us to find answer for this one

  • Query objects use ____ to retrieve data from the relational database

    Answer & Explanation

    Correct Answer: HQL

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following statement is NOT true?

    Answer & Explanation

    Correct Answer: The load() method returns null, when the unique id could not found in the database

    Note: This Question is unanswered, help us to find answer for this one

  • Hibernate takes care of mapping Java to the database using ___?

    Answer & Explanation

    Correct Answer: XML

    Note: This Question is unanswered, help us to find answer for this one

  • If Hibernate does not commit the transaction it can _______.

    Answer & Explanation

    Correct Answer: rollback

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following provides an interface between application and data stored in the database?

    Answer & Explanation

    Correct Answer: Session

    Note: This Question is unanswered, help us to find answer for this one

  • Which one of the following statements is True about the following query: from Item as I where i.description = :description

    Answer & Explanation

    Correct Answer: the Item indicates the name of the entity class and it's case sensitive

    Note: This Question is unanswered, help us to find answer for this one

  • Which one of the following statements is true about using annotation to setup Inheritance Models?

    Answer & Explanation

    Correct Answer: the @DiscriminatorValue annotation is used to specify the value in the in the discriminator column in database

    Note: This Question is unanswered, help us to find answer for this one

  • Which one of the following statements is true?

    Answer & Explanation

    Correct Answer: The load() method can return a poxy than immediately hitting the database.

    Note: This Question is unanswered, help us to find answer for this one

  • Hibernate Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.