Entities or DTOs – When should you use which projection?
| |

Entities or DTOs – When should you use which projection?

JPA and Hibernate allow you to use DTOs and entities as projections in your JPQL and Criteria queries. When I talk about Hibernate performance in my online training or at a workshop, I get often asked, if it matters which projection you use. The answer is: YES! Choosing the right projection for your use case…

5 Things You Need to Know When Using Hibernate with Mysql
|

5 Things You Need to Know When Using Hibernate with Mysql

One of the benefits of using JPA and Hibernate is that it provides an abstraction of database-specific dialects and features. So, in theory, you can implement an application, connect it to one of the supported databases and it will run without any code changes. Hibernate does that really well. But let’s be honest, you didn’t…