DBUtil: utility functions for classes and tests with JPA