This also affects Sessions opened using SessionFactory.openSession() and ist not limited to JPA EntityManagers