code: public Object assignIdValue(ConnectionSource connectionSource, 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(connectionSource, data, idVal, false, objectCache);
  			return idVal;
  		}
  	}
docs: Assign an ID value to this field.