Posts by "JBT"

Caching with Hibernate 4

If you have a bigger application you think about performance and how you can improve it. Caching is one way to do this because it enables fewer queries going to the database. Querying the database is always a performance impact because it is an I/O operation. And I/O operations are much slower than operations using… Continue reading

Hibernate 4 Database configuration

In the previous articles I have shown you how to get started with Hibernate 4: create entities, manage relations and inheritance and how to query the stored data. However every time I used an in-memory database which means that every time you stop the application the inserted data vanishes.

Hibernate 4 annotations Configuration

In the last, introductory article I mentioned the so-called “XML-Hell” which is the massive usage of XML to do Hibernate configuration. In this article, I will introduce the annotation-based configuration, where you can use Hibernate’s annotations on the entities to reduce the amount of XML needed.