示例#1
0
  private boolean fillValuesImpl() {
    final EntityTypeImpl<X> _type = this.type;

    if (_type.hasSingleIdAttribute()) {
      return this.type
          .getRootType()
          .getIdMapping()
          .fillValue(_type.getRootType(), this, this.instance);
    } else {
      for (final Pair<SingularMapping<?, ?>, AbstractAccessor> mapping : _type.getIdMappings()) {
        if (!((SingularMappingEx<?, ?>) mapping.getFirst())
            .fillValue(_type.getRootType(), this, this.instance)) {
          return false;
        }
      }

      return true;
    }
  }