Hibernate Objective Questions And Answers
More interview questions and answers

Choose true 1.Hibernate is a framework. 2.Hibernate is an object-relational mapping (ORM) library for the Java language 3.Hibernate provides a mapping for object-oriented domain model to a traditional relational database. 4.All of the above 5.None

Hibernate lets you develop persistent classes following common Java idiom - including association, inheritance, polymorphism, composition and the Java collections framework. 1.True 2.False

What is ORM? 1.ORM stands for object/relational mapping. 2.ORM is the automated persistence of objects in a Java application to the tables in a relational database. 3.Both of Above 4.None

The Hibernate XML configuration file name is? 1.hibernate.cfg.xml 2.hibernate.config.xml 3.hibernate.cg.xml 4.None

The most common methods of Hibernate configuration 1. XML configuration in hibernate.cfg.xml 2. XML configuration in hibernate.config.xml 3. Programmatic configuration 4. None

Which of following are not Core interfaces of Hibernate framework 1.Session interface 2.SessionFactory interface 3.Configuration interface 4.Transaction interface 5.Query and Criteria interfaces A.1,2,3,4,5 B.1,3,5 c.1,5 D. None

Is SessionFactory a thread safe object ? 1.Yes 2.No

Choose correct Instance states of persistent classes? 1.transient 2.persistent 3.detached 4.All of Above 5.None

How you can enable the query cache? By setting Property name:- 1.hibernate.cache.use_query_cache true/false 2.hibernate.cache.use_query_cache 0/1 3.hibernate.cache.use _cache true/false 4.hibernate.cache.use_ _cache 0/1

Choose correct hibernate SQL Dialects (hibernate.dialect) combinations 1.For DB2 org.hibernate.dialect.DB2Dialect 2.For MySQL org.hibernate.dialect.MySQLDialect 3.For Oracle 9i/10g org.hibernate.dialect.Oracle9Dialect 4.All of the above 5. None

Which of the following integration points Hibernate have for J2EE infrastructure? 1.Container-managed datasources 2.Automatic JNDI binding 3.JTA Session binding 4.JMX deploymen

There are three standard (built-in) choices: 1.org.hibernate.transaction.JDBCTransactionFactory 2.org.hibernate.transaction.JTATransactionFactory 3.org.hibernate.transaction.CMTTransactionFactory Which is default Transaction strategy configuration? 1.1 2.2 3.3 4.None