Implementation of the Active Record pattern for JPA.