Hibernate

Hibernate Interview Questions And Answers


Totel:100 Click: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Hibernate Interview Questions And Answers

Page 1

The org.springframework.orm.hibernate.HibernateTemplate class simplifies Hibernate data access code, and converts checked HibernateExceptions into unchecked DataAccessExceptions, following the org.springframework.dao exception hierarchy. Uses the same SQLExceptionTranslator mechanism as JdbcTemplate. 
The central method is execute(), supporting Hibernate access code implementing the HibernateCallback interface. It provides Hibernate Session handling such that neither the HibernateCallback implementation nor the calling code needs to explicitly care about retrieving/closing Hibernate Sessions, or handling Session lifecycle exceptions.

The settings of the XML configuration file will override the settings used in the properties.

There are three types of instance states in Hibernate:
    * Transient :-The instance is not associated with any persistence context
    * Persistent :-The instance is associated with a persistence context
    * Detached -:The instance was associated with a persistence context which has been closed  currently not associated.

You may declare a persistent class using the class element. The dynamic-insert and dynamic-update attributes are optional attributes. The  dynamic-update (defaults value is false), specifies that UPDATE SQL should be generated at runtime and contain only those columns whose values have changed.
The dynamic-insert (defaults value is false), specifies that INSERT SQL should be generated at runtime and contain only the columns whose values are not null.

You can mark the class as mutable="false", Default value is true. This specifies that instances of the class are mutable. You can not update or delete immutable classes by the application.


Goto Page:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Hibernate Objective Questions And Answers

Hibernate Objective Questions And Answers

Hibernate Interview Questions And Answers

Hibernate Subjective Questions And Answers


R4R,Hibernate Objective fresher and experienced, Hibernate Subjective fresher and experienced ,Hibernate Interview Questions And Answers,Hibernate fresher and experienced,Hibernate Interview fresher and experienced ,Hibernate Questions fresher and experienced,Hibernate Answers fresher and experienced