Search

Recent Posts

Authors

Archives

Blogroll

Subscribe

Posts Tagged ‘Hibernate’

Evicting the Hibernate Query Cache With Spring

Posted by Timothy Myer on Tuesday, May 26th, 2009

This tutorial builds on the example presented in a previous tutorial. Here we will explore the difference between the Hibernate second-level cache and the standard query cache and how the two can be used in conjunction to reduce the number of database transactions in an application.

[View Post]

Evicting the Hibernate Domain Cache With Spring

Posted by Timothy Myer on Friday, May 22nd, 2009

This tutorial presents an exploration of the Hibernate second-level cache. By the end, we will have the tools to integrate Ehcache into a web application and to expire its entries at fixed, regular intervals using the Quartz scheduler to run a Spring batch process.

[View Post]

Mapping Hibernate Entities to Views

Posted by Timothy Myer on Wednesday, May 13th, 2009

This tutorial is an exploration of mapping Hibernate entities that do not correspond directly to database tables onto structures such as views or query results.

[View Post]

Basic Data Modelling With Hibernate

Posted by Timothy Myer on Friday, April 3rd, 2009

This article is an exploration of composition and inheritance relationships with Hibernate and Spring. The article begins with boilerplate project setup using Maven2 and presents individual examples of one-to-one, one-to-many and many-to-many relationships, as well as one way to map inheritance to a database schema. JUnit tests emphasize the interesting features of these relationships. By the end of the tutorial, we will have a framework and the tools for building more complex domains from these simple models.

[View Post]