@Override
 public void insert(Person p) throws MapperException {
   Long buddyId = p.getBuddy() == null ? null : p.getBuddy().getId();
   try {
     PersonTDG.insert(p.getId(), p.getVersion(), p.getName(), p.getAge(), buddyId);
   } catch (SQLException e) {
     throw new MapperException(e);
   }
 }