migration to spring+jpa