addapting JPA default DAO (not finished yet)