added jpa and refactored maven structure