public Object assignIdValue(Object data,Number val,ObjectCache objectCache) throws SQLException {
  Object idVal=dataPersister.convertIdNumber(val);
  if (idVal == null) {
    throw new SQLException("Invalid class " + dataPersister + " for sequence-id "+ this);
  }
 else {
    assignField(data,idVal,false,objectCache);
    return idVal;
  }
}

public Object assignIdValue ( Object data , Number val , ObjectCache objectCache ) throws SQLException { Object idVal = dataPersister . convertIdNumber ( val ) ; if ( idVal == null ) { throw new SQLException ( "Invalid class " + dataPersister + " for sequence-id " + this ) ; } else { assignField ( data , idVal , false , objectCache ) ; return idVal ; } }
assign an id value to this field .
