Changed domain to fit Jpa and added repositories for each domain object.