Hibernate
Hibernate and Spring
We can simply integrate hibernate application with spring application. In hibernate framework, we provide all the database information hibernate.cfg.xml file. But if we are going…
Hibernate and Struts
We can integrate any struts application with hibernate. There is no requirement of extra efforts. In this example, we going to use struts 2 framework…
Second Level Cache
Hibernate second level cache uses a common cache for all the session object of a session factory. It is useful if you have multiple session…
Hibernate Caching
Hibernate caching improves the performance of the application by pooling the object in the cache. There are mainly two types of caching: first level cache…
Named Query
The hibernate named query is way to use any query by some meaningful name. It is like using alias names. The Hibernate framework provides the…
Tx Management
A transaction simply represents a unit of work. In such case, if one step fails, the whole transaction fails (which is termed as atomicity). A…
One to One 2
As We have discussed in the previous example, there are two ways to perform one to one mapping in hibernate: By many-to-one element By one-to-one…
One to One 1
We can perform one to one mapping in hibernate by two ways: By many-to-one element By one-to-one element Here, we are going to perform one…