When to activate: JPA, Hibernate, entity, relationship, JPQL, Criteria API, N+1 problem, caching, transaction, fetch type, lazy loading