Migration from MyBatis 3 to JPA 2