Prev Next

Hibernate / Hibernate interview questions II

How objects can be identified in Hibernate?

Object identification can be done in hibernate in following 3 ways.

  • Using Object Identity: Using == operator.
  • Using Object Equality: Using equals() method.
  • Using database identity: Relational database objects can be identified if they represent same row.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Explain save, persist, saveOrUpdate and other object save methods in Hibernate. Refreshing Entity objects using refresh() Method in Hibernate. What is the advantage of using session.lock() in hibernate? Difference between sorted and ordered collection in hibernate. How do I map a composite key in Hibernate? List out the design patterns used in Hibernate framework. Why hibernate is preferred to use than JDBC for database interaction in various Java applications? What is difference between openSession and getCurrentSession? Difference between persistence.xml and hibernate.cfg.xml. What is the latest version of Hibernate in use? What are the best practices for defining your Hibernate persistent classes? How do I implement Joins in Hibernate? Explain Component mapping in hibernate. Hibernate: Can we perform collection mapping with One-to-One and Many-to-One? How do I create an immutable class in hibernate? Hibernate: Can we switch to different relational database without any code changes? How do I implement JPA for No-SQL database like mongoDB? What happens when Hibernate Entity bean has no no-args constructor? How do I lookup application server JNDI DataSource using Hibernate? How do I reattach any detached objects in Hibernate? Explain attribute oriented programming in Hibernate. Does hibernate support polymorphism? What are derived properties in hibernate? Use of QBC API in Hibernate. What do you mean by ORM metadata in hibernate. Difference between managed and hibernate associations. Explain HibernateTemplate. List the four ORM levels in hibernate. Explain pure relational ORM. Explain light object mapping level of ORM. What is the use of version property in hibernate? Explain medium object mapping in hibernate. Hibernate: What is meant by full object mapping? What do you mean by Extension interfaces in hibernate? How do I persist an image/media in oracle using hibernate ? What is the role of JMX in hibernate? How objects can be identified in Hibernate? What is the use of version property in hibernate? What is a lazy association in hibernate? What is the use of SchemaValidator in hibernate? What are the benefits of detached objects in hibernate? What is CRUD? What are Scalar queries in Hibernate? What are entity query in hibernate? Hibernate: How do you add a criteria to a query? Define persistent classes in hibernate. Why do we batch processing in hibernate? Hibernate: Is HQL query case sensitive? Explain the role of Configurationclass in Hibernate ? How to prevent concurrent update in Hibernate? Hibernate: disadvantages of using HQL ? Hibernate:advantages of using HQL. Explain flush() method in Hibernate. Hibernate: Difference commit() vs flush(). Explain Hibernate named query. What does <![CDATA[]]> in XML mean? Explain SQL Dialect in Hibernate. What is hibernate proxy? Explain hibernate interceptors. Explain Hibernate Disjunction. What is Hibernate Conjunction? Explain addScalar method in Hibernate. How hibernate session is related to the JDBC connection? What is Hibernate Criteria Transformer? How to prevent SQL Injection in hibernate? How do I print a query with parameter values when using Hibernate? How do we minimize the number of DB write action in Hibernate?
Show more question and Answers...

Hibernate Interview Questions III

Comments & Discussions