Migration from MyBatis3 to JPA 2