Exemplo n.º 1
0
  public String getUnsettableFieldName(EStructuralFeature feature) {
    String name = DBAnnotation.COLUMN_NAME.getValue(feature);
    if (name != null) {
      return CDO_SET_PREFIX + name;
    }

    return getName(
        CDO_SET_PREFIX + feature.getName(),
        TYPE_PREFIX_FEATURE + getUniqueID(feature),
        getMaxFieldNameLength());
  }
Exemplo n.º 2
0
  public String getFieldName(EStructuralFeature feature) {
    String name = DBAnnotation.COLUMN_NAME.getValue(feature);
    if (name == null) {
      name =
          getName(
              feature.getName(),
              TYPE_PREFIX_FEATURE + getUniqueID(feature),
              getMaxFieldNameLength());
    }

    return name;
  }