Esempio 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());
  }
Esempio 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;
  }