JBoss Hibernate
-
Enterprise Java
Hibernate 4.2.8 , javassist 3.18.1 and ClassCastExceptions – watch out your classpath
I am writing this post as a tip and warning rather than an absolute solution. I will try to come…
Read More » -
Enterprise Java
Workshop on Creating a Personal MusicManager Web Application with Struts2, Hibernate and MySQL
Overview: In this workshop tutorial we’ll develop a personal music manager application using Struts 2, Hibernate and MySQL database. The…
Read More » -
Enterprise Java
Hibernate Facts: Always check Criteria API SQL queries
Criteria API is very useful for dynamically building queries, but that’s the only use case where I’d use it. Whenever…
Read More » -
Enterprise Java
Hibernate Facts: Integration testing strategies
I like Integration Testing, it’s a good way to check what SQL queries Hibernate generates behind-scenes. But Integration Tests require…
Read More » -
Software Development
ID Lists Aren’t the Best Solution for the N+1 Problem
In their eternal attempts to circumvent the N+1 problem, Hibernate users often resort to IN predicates with ID lists. In…
Read More » -
Enterprise Java
Hibernate Facts: Equals and HashCode
Every Java object inherits the equals and hashCode methods, yet they are useful only for Value objects, being of no…
Read More » -
Enterprise Java
Hibernate Facts: Multi level fetching
It’s quite common to retrieve a root entity along with its children associations on multiple levels. In our example we…
Read More » -
Enterprise Java
Hibernate Facts: Knowing flush operations order matters
Hibernate shifts the developer mindset from thinking SQL into thinking object state transitions. According to Hibernate Docs entity may be…
Read More » -
Enterprise Java
Hibernate Facts: The importance of fetch strategy
When it comes to working with an ORM tool, everybody acknowledges the importance of database design and Entity-to-Table mapping. These…
Read More »