Hibernate Tip : How to detach an entity from the persistence context

Get more recipes like this one in my new book Hibernate Tips: More than 70 solutions to common Hibernate problems: This time I will show you how to detach entities from your persistence context. As I explained in one of my previous video and in my Hibernate Performance Tuning training: When you need to update or delete a huge number of entities, it is often better to use a JPQL or SQL statement instead of updating one entity after the other. Instead of performing at least one query fo
Back to Top