Logging Guide for Hibernate 4, 5 & 6 – Use the right config for dev and prod
|

Logging Guide for Hibernate 4, 5 & 6 – Use the right config for dev and prod

Choosing the right logging configuration can make the difference between finding a performance issue during development or suffering from it on production. But it can also create an overhead that slows down your application. You need to decide which information you need and configure your system accordingly. I, therefore, prefer to use two different configurations:…

Mapping Definitions in JPA and Hibernate – Annotations, XML or both?
|

Mapping Definitions in JPA and Hibernate – Annotations, XML or both?

If you’re using Hibernate for several years, you might remember the time when you had to define all your mappings in the orm.xml file. You had a bunch of Java classes that represented your domain model and a long XML file with the mapping and query information. One of the main challenges with that approach…