Helper classes for work with JPA frameworks