Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-06-10 15:27:35 -0400
committerMartin Taal2012-06-10 15:27:35 -0400
commitd222e11f8a1f40c727be6379235489d69e904e20 (patch)
tree7d30bf4532c796dc9e26cfbcb722cc03c0421d7e /generator/org.eclipse.emf.texo.orm
parent814e5647c3af00678b086db0e23e223877aa5ea2 (diff)
downloadorg.eclipse.emf.texo-d222e11f8a1f40c727be6379235489d69e904e20.tar.gz
org.eclipse.emf.texo-d222e11f8a1f40c727be6379235489d69e904e20.tar.xz
org.eclipse.emf.texo-d222e11f8a1f40c727be6379235489d69e904e20.zip
Added unique entity naming property and prevent collision in case of ereference to itself
Diffstat (limited to 'generator/org.eclipse.emf.texo.orm')
-rw-r--r--generator/org.eclipse.emf.texo.orm/model/texo-annotations-orm.ecore2
-rw-r--r--generator/org.eclipse.emf.texo.orm/model/texo-annotations-orm.genmodel1
-rwxr-xr-xgenerator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMNamingStrategy.java14
-rwxr-xr-xgenerator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EPackageORMAnnotation.java1863
-rwxr-xr-xgenerator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/OrmannotationsPackage.java34
5 files changed, 923 insertions, 991 deletions
diff --git a/generator/org.eclipse.emf.texo.orm/model/texo-annotations-orm.ecore b/generator/org.eclipse.emf.texo.orm/model/texo-annotations-orm.ecore
index e8dae6fd..6d4941ed 100644
--- a/generator/org.eclipse.emf.texo.orm/model/texo-annotations-orm.ecore
+++ b/generator/org.eclipse.emf.texo.orm/model/texo-annotations-orm.ecore
@@ -42,6 +42,8 @@
defaultValueLiteral="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="inheritance" eType="ecore:EClass orm.ecore#//Inheritance"
containment="true"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="uniqueEntityNames" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"
+ defaultValueLiteral="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ETypeElementORMAnnotation" abstract="true"
interface="true" eSuperTypes="#//ENamedElementORMAnnotation">
diff --git a/generator/org.eclipse.emf.texo.orm/model/texo-annotations-orm.genmodel b/generator/org.eclipse.emf.texo.orm/model/texo-annotations-orm.genmodel
index e29da26f..5ba4fda2 100644
--- a/generator/org.eclipse.emf.texo.orm/model/texo-annotations-orm.genmodel
+++ b/generator/org.eclipse.emf.texo.orm/model/texo-annotations-orm.genmodel
@@ -26,6 +26,7 @@
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute texo-annotations-orm.ecore#//EPackageORMAnnotation/addOrderColumnToListMappings"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute texo-annotations-orm.ecore#//EPackageORMAnnotation/renameSQLReservedNames"/>
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference texo-annotations-orm.ecore#//EPackageORMAnnotation/inheritance"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute texo-annotations-orm.ecore#//EPackageORMAnnotation/uniqueEntityNames"/>
</genClasses>
<genClasses image="false" ecoreClass="texo-annotations-orm.ecore#//ETypeElementORMAnnotation">
<genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference texo-annotations-orm.ecore#//ETypeElementORMAnnotation/transient"/>
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMNamingStrategy.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMNamingStrategy.java
index 437bfc40..65bfb220 100755
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMNamingStrategy.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/annotator/ORMNamingStrategy.java
@@ -206,7 +206,8 @@ public class ORMNamingStrategy {
public String getJoinColumnName(EStructuralFeature eFeature) {
String localName = getDictionariedName(eFeature, "joinColumn"); //$NON-NLS-1$
if (localName == null) {
- if (ePackageORMAnnotation.isEnforceUniqueNames()) {
+ if (ePackageORMAnnotation.isEnforceUniqueNames() || eFeature instanceof EReference
+ && eFeature.getEType() == eFeature.getEContainingClass()) {
localName = getEntityName(eFeature.getEContainingClass()) + "_" + eFeature.getName();
} else {
localName = getEntityName(eFeature.getEContainingClass()) + "_id";
@@ -227,10 +228,15 @@ public class ORMNamingStrategy {
public String getInverseJoinColumnName(EReference eReference) {
String localName = getDictionariedName(eReference, "inverseJoinColumn"); //$NON-NLS-1$
if (localName == null) {
- if (eReference.getEOpposite() != null) {
+ // pointers to ourselves gives duplicate columns
+ if (ePackageORMAnnotation.isEnforceUniqueNames()
+ || eReference.getEReferenceType() == eReference.getEContainingClass()) {
+ localName = eReference.getName() + "_" + getEntityName(eReference.getEReferenceType());
+ } else if (eReference.getEOpposite() != null) {
return getJoinColumnName(eReference.getEOpposite());
+ } else {
+ localName = getEntityName(eReference.getEReferenceType()) + "_id"; //$NON-NLS-1$
}
- localName = getEntityName(eReference.getEReferenceType()) + "_id"; //$NON-NLS-1$
}
return processName(localName, ePackageORMAnnotation.getColumnNamePrefix());
}
@@ -260,7 +266,7 @@ public class ORMNamingStrategy {
}
private String getUniqueMakingPrefix(EClass eClass) {
- if (ePackageORMAnnotation.isEnforceUniqueNames()) {
+ if (ePackageORMAnnotation.isUniqueEntityNames()) {
return eClass.getEPackage().getNsPrefix() + "_"; //$NON-NLS-1$
}
return ""; //$NON-NLS-1$
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EPackageORMAnnotation.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EPackageORMAnnotation.java
index 76d925b4..c30a0134 100755
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EPackageORMAnnotation.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/EPackageORMAnnotation.java
@@ -24,45 +24,31 @@ import org.eclipse.emf.texo.orm.annotator.ORMNamingStrategyProvider;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>EPackage ORM Annotation</b></em>'. <!--
* end-user-doc -->
- *
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateFullDbSchemaNames <em>Generate
- * Full Db Schema Names</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getNameDictionaryPropertyFile <em>Name
- * Dictionary Property File</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getTableNamePrefix <em>Table Name Prefix
- * </em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getColumnNamePrefix <em>Column Name Prefix
- * </em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getMaximumSqlNameLength <em>Maximum Sql Name
- * Length</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isLowerCasedNames <em>Lower Cased Names
- * </em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUpperCasedNames <em>Upper Cased Names
- * </em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isEnforceUniqueNames <em>Enforce Unique
- * Names</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForContainment <em>Use Join
- * Tables For Containment</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForNonContainment <em>Use
- * Join Tables For Non Containment</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeContainment <em>Default
- * Cascade Containment</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeNonContainment <em>Default
- * Cascade Non Containment</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getEntityMappings <em>Entity Mappings</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateJavaAnnotations <em>Generate Java
- * Annotations</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isAddOrderColumnToListMappings <em>Add Order
- * Column To List Mappings</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isRenameSQLReservedNames <em>Rename SQL
- * Reserved Names</em>}</li>
- * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getInheritance <em>Inheritance</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateFullDbSchemaNames <em>Generate Full Db Schema Names</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getNameDictionaryPropertyFile <em>Name Dictionary Property File</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getTableNamePrefix <em>Table Name Prefix</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getColumnNamePrefix <em>Column Name Prefix</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getMaximumSqlNameLength <em>Maximum Sql Name Length</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isLowerCasedNames <em>Lower Cased Names</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUpperCasedNames <em>Upper Cased Names</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isEnforceUniqueNames <em>Enforce Unique Names</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForContainment <em>Use Join Tables For Containment</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForNonContainment <em>Use Join Tables For Non Containment</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeContainment <em>Default Cascade Containment</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeNonContainment <em>Default Cascade Non Containment</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getEntityMappings <em>Entity Mappings</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateJavaAnnotations <em>Generate Java Annotations</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isAddOrderColumnToListMappings <em>Add Order Column To List Mappings</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isRenameSQLReservedNames <em>Rename SQL Reserved Names</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getInheritance <em>Inheritance</em>}</li>
+ * <li>{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUniqueEntityNames <em>Unique Entity Names</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation()
* @model kind="class"
* @generated
@@ -70,58 +56,54 @@ import org.eclipse.emf.texo.orm.annotator.ORMNamingStrategyProvider;
public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedElementORMAnnotation {
/**
- * The default value of the '{@link #isGenerateFullDbSchemaNames() <em>Generate Full Db Schema Names</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isGenerateFullDbSchemaNames()
- * @generated
- * @ordered
- */
+ * The default value of the '{@link #isGenerateFullDbSchemaNames() <em>Generate Full Db Schema Names</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #isGenerateFullDbSchemaNames()
+ * @generated
+ * @ordered
+ */
protected static final boolean GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT = true;
/**
- * The cached value of the '{@link #isGenerateFullDbSchemaNames() <em>Generate Full Db Schema Names</em>}' attribute.
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isGenerateFullDbSchemaNames()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #isGenerateFullDbSchemaNames() <em>Generate Full Db Schema Names</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #isGenerateFullDbSchemaNames()
+ * @generated
+ * @ordered
+ */
protected boolean generateFullDbSchemaNames = GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT;
/**
- * The default value of the '{@link #getNameDictionaryPropertyFile() <em>Name Dictionary Property File</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getNameDictionaryPropertyFile()
- * @generated
- * @ordered
- */
+ * The default value of the '{@link #getNameDictionaryPropertyFile() <em>Name Dictionary Property File</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #getNameDictionaryPropertyFile()
+ * @generated
+ * @ordered
+ */
protected static final String NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT = null;
/**
- * The cached value of the '{@link #getNameDictionaryPropertyFile() <em>Name Dictionary Property File</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getNameDictionaryPropertyFile()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #getNameDictionaryPropertyFile() <em>Name Dictionary Property File</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #getNameDictionaryPropertyFile()
+ * @generated
+ * @ordered
+ */
protected String nameDictionaryPropertyFile = NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT;
/**
- * The default value of the '{@link #getTableNamePrefix() <em>Table Name Prefix</em>}' attribute. <!-- begin-user-doc
+ * The default value of the '{@link #getTableNamePrefix() <em>Table Name Prefix</em>}' attribute.
+ * <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
- * @see #getTableNamePrefix()
- * @generated
- * @ordered
- */
+ * @see #getTableNamePrefix()
+ * @generated
+ * @ordered
+ */
protected static final String TABLE_NAME_PREFIX_EDEFAULT = null;
/**
- * The cached value of the '{@link #getTableNamePrefix() <em>Table Name Prefix</em>}' attribute. <!-- begin-user-doc
+ * The cached value of the '{@link #getTableNamePrefix() <em>Table Name Prefix</em>}' attribute.
+ * <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
- * @see #getTableNamePrefix()
- * @generated
- * @ordered
- */
+ * @see #getTableNamePrefix()
+ * @generated
+ * @ordered
+ */
protected String tableNamePrefix = TABLE_NAME_PREFIX_EDEFAULT;
/**
* The default value of the '{@link #getColumnNamePrefix() <em>Column Name Prefix</em>}' attribute. <!--
@@ -133,13 +115,13 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
*/
protected static final String COLUMN_NAME_PREFIX_EDEFAULT = null;
/**
- * The cached value of the '{@link #getColumnNamePrefix() <em>Column Name Prefix</em>}' attribute. <!-- begin-user-doc
+ * The cached value of the '{@link #getColumnNamePrefix() <em>Column Name Prefix</em>}' attribute.
+ * <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
- * @see #getColumnNamePrefix()
- * @generated
- * @ordered
- */
+ * @see #getColumnNamePrefix()
+ * @generated
+ * @ordered
+ */
protected String columnNamePrefix = COLUMN_NAME_PREFIX_EDEFAULT;
/**
* The default value of the '{@link #getMaximumSqlNameLength() <em>Maximum Sql Name Length</em>}' attribute. <!--
@@ -160,40 +142,40 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
*/
protected int maximumSqlNameLength = MAXIMUM_SQL_NAME_LENGTH_EDEFAULT;
/**
- * The default value of the '{@link #isLowerCasedNames() <em>Lower Cased Names</em>}' attribute. <!-- begin-user-doc
+ * The default value of the '{@link #isLowerCasedNames() <em>Lower Cased Names</em>}' attribute.
+ * <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
- * @see #isLowerCasedNames()
- * @generated
- * @ordered
- */
+ * @see #isLowerCasedNames()
+ * @generated
+ * @ordered
+ */
protected static final boolean LOWER_CASED_NAMES_EDEFAULT = false;
/**
- * The cached value of the '{@link #isLowerCasedNames() <em>Lower Cased Names</em>}' attribute. <!-- begin-user-doc
+ * The cached value of the '{@link #isLowerCasedNames() <em>Lower Cased Names</em>}' attribute.
+ * <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
- * @see #isLowerCasedNames()
- * @generated
- * @ordered
- */
+ * @see #isLowerCasedNames()
+ * @generated
+ * @ordered
+ */
protected boolean lowerCasedNames = LOWER_CASED_NAMES_EDEFAULT;
/**
- * The default value of the '{@link #isUpperCasedNames() <em>Upper Cased Names</em>}' attribute. <!-- begin-user-doc
+ * The default value of the '{@link #isUpperCasedNames() <em>Upper Cased Names</em>}' attribute.
+ * <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
- * @see #isUpperCasedNames()
- * @generated
- * @ordered
- */
+ * @see #isUpperCasedNames()
+ * @generated
+ * @ordered
+ */
protected static final boolean UPPER_CASED_NAMES_EDEFAULT = false;
/**
- * The cached value of the '{@link #isUpperCasedNames() <em>Upper Cased Names</em>}' attribute. <!-- begin-user-doc
+ * The cached value of the '{@link #isUpperCasedNames() <em>Upper Cased Names</em>}' attribute.
+ * <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
- * @see #isUpperCasedNames()
- * @generated
- * @ordered
- */
+ * @see #isUpperCasedNames()
+ * @generated
+ * @ordered
+ */
protected boolean upperCasedNames = UPPER_CASED_NAMES_EDEFAULT;
/**
@@ -215,58 +197,52 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
*/
protected boolean enforceUniqueNames = ENFORCE_UNIQUE_NAMES_EDEFAULT;
/**
- * The default value of the '{@link #isUseJoinTablesForContainment() <em>Use Join Tables For Containment</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isUseJoinTablesForContainment()
- * @generated
- * @ordered
- */
+ * The default value of the '{@link #isUseJoinTablesForContainment() <em>Use Join Tables For Containment</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #isUseJoinTablesForContainment()
+ * @generated
+ * @ordered
+ */
protected static final boolean USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT = false;
/**
- * The cached value of the '{@link #isUseJoinTablesForContainment() <em>Use Join Tables For Containment</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isUseJoinTablesForContainment()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #isUseJoinTablesForContainment() <em>Use Join Tables For Containment</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #isUseJoinTablesForContainment()
+ * @generated
+ * @ordered
+ */
protected boolean useJoinTablesForContainment = USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT;
/**
- * The default value of the '{@link #isUseJoinTablesForNonContainment() <em>Use Join Tables For Non Containment</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isUseJoinTablesForNonContainment()
- * @generated
- * @ordered
- */
+ * The default value of the '{@link #isUseJoinTablesForNonContainment() <em>Use Join Tables For Non Containment</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #isUseJoinTablesForNonContainment()
+ * @generated
+ * @ordered
+ */
protected static final boolean USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT = true;
/**
- * The cached value of the '{@link #isUseJoinTablesForNonContainment() <em>Use Join Tables For Non Containment</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isUseJoinTablesForNonContainment()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #isUseJoinTablesForNonContainment() <em>Use Join Tables For Non Containment</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #isUseJoinTablesForNonContainment()
+ * @generated
+ * @ordered
+ */
protected boolean useJoinTablesForNonContainment = USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT;
/**
- * The cached value of the '{@link #getDefaultCascadeContainment() <em>Default Cascade Containment</em>}' containment
- * reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDefaultCascadeContainment()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #getDefaultCascadeContainment() <em>Default Cascade Containment</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #getDefaultCascadeContainment()
+ * @generated
+ * @ordered
+ */
protected CascadeType defaultCascadeContainment;
/**
- * The cached value of the '{@link #getDefaultCascadeNonContainment() <em>Default Cascade Non Containment</em>}'
- * containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getDefaultCascadeNonContainment()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #getDefaultCascadeNonContainment() <em>Default Cascade Non Containment</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #getDefaultCascadeNonContainment()
+ * @generated
+ * @ordered
+ */
protected CascadeType defaultCascadeNonContainment;
/**
@@ -298,22 +274,20 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
*/
protected boolean generateJavaAnnotations = GENERATE_JAVA_ANNOTATIONS_EDEFAULT;
/**
- * The default value of the '{@link #isAddOrderColumnToListMappings() <em>Add Order Column To List Mappings</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isAddOrderColumnToListMappings()
- * @generated
- * @ordered
- */
+ * The default value of the '{@link #isAddOrderColumnToListMappings() <em>Add Order Column To List Mappings</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #isAddOrderColumnToListMappings()
+ * @generated
+ * @ordered
+ */
protected static final boolean ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT = false;
/**
- * The cached value of the '{@link #isAddOrderColumnToListMappings() <em>Add Order Column To List Mappings</em>}'
- * attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #isAddOrderColumnToListMappings()
- * @generated
- * @ordered
- */
+ * The cached value of the '{@link #isAddOrderColumnToListMappings() <em>Add Order Column To List Mappings</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @see #isAddOrderColumnToListMappings()
+ * @generated
+ * @ordered
+ */
protected boolean addOrderColumnToListMappings = ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT;
/**
* The default value of the '{@link #isRenameSQLReservedNames() <em>Rename SQL Reserved Names</em>}' attribute. <!--
@@ -335,15 +309,33 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
protected boolean renameSQLReservedNames = RENAME_SQL_RESERVED_NAMES_EDEFAULT;
/**
- * The cached value of the '{@link #getInheritance() <em>Inheritance</em>}' containment reference. <!-- begin-user-doc
+ * The cached value of the '{@link #getInheritance() <em>Inheritance</em>}' containment reference.
+ * <!-- begin-user-doc
* --> <!-- end-user-doc -->
- *
- * @see #getInheritance()
- * @generated
- * @ordered
- */
+ * @see #getInheritance()
+ * @generated
+ * @ordered
+ */
protected Inheritance inheritance;
- private final ORMNamingStrategy namingStrategy;
+ /**
+ * The default value of the '{@link #isUniqueEntityNames() <em>Unique Entity Names</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isUniqueEntityNames()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean UNIQUE_ENTITY_NAMES_EDEFAULT = true;
+ /**
+ * The cached value of the '{@link #isUniqueEntityNames() <em>Unique Entity Names</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isUniqueEntityNames()
+ * @generated
+ * @ordered
+ */
+ protected boolean uniqueEntityNames = UNIQUE_ENTITY_NAMES_EDEFAULT;
+ private final ORMNamingStrategy namingStrategy;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
@@ -390,465 +382,395 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
}
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
@Override
protected EClass eStaticClass() {
- return OrmannotationsPackage.Literals.EPACKAGE_ORM_ANNOTATION;
- }
+ return OrmannotationsPackage.Literals.EPACKAGE_ORM_ANNOTATION;
+ }
/**
- * Returns the value of the '<em><b>Generate Full Db Schema Names</b></em>' attribute. The default value is
- * <code>"true"</code>. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Generate Full Db Schema Names</b></em>' attribute.
+ * The default value is <code>"true"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Generate Full Db Schema Names</em>' attribute isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Generate Full Db Schema Names</em>' attribute.
- * @see #setGenerateFullDbSchemaNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_GenerateFullDbSchemaNames()
- * @model default="true"
- * @generated
- */
+ * @return the value of the '<em>Generate Full Db Schema Names</em>' attribute.
+ * @see #setGenerateFullDbSchemaNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_GenerateFullDbSchemaNames()
+ * @model default="true"
+ * @generated
+ */
public boolean isGenerateFullDbSchemaNames() {
- return generateFullDbSchemaNames;
- }
+ return generateFullDbSchemaNames;
+ }
/**
- * Sets the value of the '
- * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateFullDbSchemaNames
- * <em>Generate Full Db Schema Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Generate Full Db Schema Names</em>' attribute.
- * @see #isGenerateFullDbSchemaNames()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateFullDbSchemaNames <em>Generate Full Db Schema Names</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Generate Full Db Schema Names</em>' attribute.
+ * @see #isGenerateFullDbSchemaNames()
+ * @generated
+ */
public void setGenerateFullDbSchemaNames(boolean newGenerateFullDbSchemaNames) {
- boolean oldGenerateFullDbSchemaNames = generateFullDbSchemaNames;
- generateFullDbSchemaNames = newGenerateFullDbSchemaNames;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES, oldGenerateFullDbSchemaNames,
- generateFullDbSchemaNames));
- }
- }
+ boolean oldGenerateFullDbSchemaNames = generateFullDbSchemaNames;
+ generateFullDbSchemaNames = newGenerateFullDbSchemaNames;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES, oldGenerateFullDbSchemaNames, generateFullDbSchemaNames));
+ }
/**
- * Returns the value of the '<em><b>Name Dictionary Property File</b></em>' attribute. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Name Dictionary Property File</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name Dictionary Property File</em>' attribute isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Name Dictionary Property File</em>' attribute.
- * @see #setNameDictionaryPropertyFile(String)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_NameDictionaryPropertyFile()
- * @model
- * @generated
- */
+ * @return the value of the '<em>Name Dictionary Property File</em>' attribute.
+ * @see #setNameDictionaryPropertyFile(String)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_NameDictionaryPropertyFile()
+ * @model
+ * @generated
+ */
public String getNameDictionaryPropertyFile() {
- return nameDictionaryPropertyFile;
- }
+ return nameDictionaryPropertyFile;
+ }
/**
- * Sets the value of the '
- * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getNameDictionaryPropertyFile
- * <em>Name Dictionary Property File</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Name Dictionary Property File</em>' attribute.
- * @see #getNameDictionaryPropertyFile()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getNameDictionaryPropertyFile <em>Name Dictionary Property File</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name Dictionary Property File</em>' attribute.
+ * @see #getNameDictionaryPropertyFile()
+ * @generated
+ */
public void setNameDictionaryPropertyFile(String newNameDictionaryPropertyFile) {
- String oldNameDictionaryPropertyFile = nameDictionaryPropertyFile;
- nameDictionaryPropertyFile = newNameDictionaryPropertyFile;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE, oldNameDictionaryPropertyFile,
- nameDictionaryPropertyFile));
- }
- }
+ String oldNameDictionaryPropertyFile = nameDictionaryPropertyFile;
+ nameDictionaryPropertyFile = newNameDictionaryPropertyFile;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE, oldNameDictionaryPropertyFile, nameDictionaryPropertyFile));
+ }
/**
- * Returns the value of the '<em><b>Table Name Prefix</b></em>' attribute. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Table Name Prefix</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Table Name Prefix</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Table Name Prefix</em>' attribute.
- * @see #setTableNamePrefix(String)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_TableNamePrefix()
- * @model
- * @generated
- */
+ * @return the value of the '<em>Table Name Prefix</em>' attribute.
+ * @see #setTableNamePrefix(String)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_TableNamePrefix()
+ * @model
+ * @generated
+ */
public String getTableNamePrefix() {
- return tableNamePrefix;
- }
+ return tableNamePrefix;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getTableNamePrefix
- * <em>Table Name Prefix</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Table Name Prefix</em>' attribute.
- * @see #getTableNamePrefix()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getTableNamePrefix <em>Table Name Prefix</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Table Name Prefix</em>' attribute.
+ * @see #getTableNamePrefix()
+ * @generated
+ */
public void setTableNamePrefix(String newTableNamePrefix) {
- String oldTableNamePrefix = tableNamePrefix;
- tableNamePrefix = newTableNamePrefix;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX, oldTableNamePrefix, tableNamePrefix));
- }
- }
+ String oldTableNamePrefix = tableNamePrefix;
+ tableNamePrefix = newTableNamePrefix;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX, oldTableNamePrefix, tableNamePrefix));
+ }
/**
- * Returns the value of the '<em><b>Column Name Prefix</b></em>' attribute. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Column Name Prefix</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Column Name Prefix</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Column Name Prefix</em>' attribute.
- * @see #setColumnNamePrefix(String)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_ColumnNamePrefix()
- * @model
- * @generated
- */
+ * @return the value of the '<em>Column Name Prefix</em>' attribute.
+ * @see #setColumnNamePrefix(String)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_ColumnNamePrefix()
+ * @model
+ * @generated
+ */
public String getColumnNamePrefix() {
- return columnNamePrefix;
- }
+ return columnNamePrefix;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getColumnNamePrefix
- * <em>Column Name Prefix</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Column Name Prefix</em>' attribute.
- * @see #getColumnNamePrefix()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getColumnNamePrefix <em>Column Name Prefix</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Column Name Prefix</em>' attribute.
+ * @see #getColumnNamePrefix()
+ * @generated
+ */
public void setColumnNamePrefix(String newColumnNamePrefix) {
- String oldColumnNamePrefix = columnNamePrefix;
- columnNamePrefix = newColumnNamePrefix;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX, oldColumnNamePrefix, columnNamePrefix));
- }
- }
+ String oldColumnNamePrefix = columnNamePrefix;
+ columnNamePrefix = newColumnNamePrefix;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX, oldColumnNamePrefix, columnNamePrefix));
+ }
/**
- * Returns the value of the '<em><b>Maximum Sql Name Length</b></em>' attribute. The default value is
- * <code>"255"</code>. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Maximum Sql Name Length</b></em>' attribute.
+ * The default value is <code>"255"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Maximum Sql Name Length</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Maximum Sql Name Length</em>' attribute.
- * @see #setMaximumSqlNameLength(int)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_MaximumSqlNameLength()
- * @model default="255"
- * @generated
- */
+ * @return the value of the '<em>Maximum Sql Name Length</em>' attribute.
+ * @see #setMaximumSqlNameLength(int)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_MaximumSqlNameLength()
+ * @model default="255"
+ * @generated
+ */
public int getMaximumSqlNameLength() {
- return maximumSqlNameLength;
- }
+ return maximumSqlNameLength;
+ }
/**
- * Sets the value of the '
- * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getMaximumSqlNameLength
- * <em>Maximum Sql Name Length</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Maximum Sql Name Length</em>' attribute.
- * @see #getMaximumSqlNameLength()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getMaximumSqlNameLength <em>Maximum Sql Name Length</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Maximum Sql Name Length</em>' attribute.
+ * @see #getMaximumSqlNameLength()
+ * @generated
+ */
public void setMaximumSqlNameLength(int newMaximumSqlNameLength) {
- int oldMaximumSqlNameLength = maximumSqlNameLength;
- maximumSqlNameLength = newMaximumSqlNameLength;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH, oldMaximumSqlNameLength,
- maximumSqlNameLength));
- }
- }
+ int oldMaximumSqlNameLength = maximumSqlNameLength;
+ maximumSqlNameLength = newMaximumSqlNameLength;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH, oldMaximumSqlNameLength, maximumSqlNameLength));
+ }
/**
- * Returns the value of the '<em><b>Lower Cased Names</b></em>' attribute. The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Lower Cased Names</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Lower Cased Names</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Lower Cased Names</em>' attribute.
- * @see #setLowerCasedNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_LowerCasedNames()
- * @model default="false"
- * @generated
- */
+ * @return the value of the '<em>Lower Cased Names</em>' attribute.
+ * @see #setLowerCasedNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_LowerCasedNames()
+ * @model default="false"
+ * @generated
+ */
public boolean isLowerCasedNames() {
- return lowerCasedNames;
- }
+ return lowerCasedNames;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isLowerCasedNames
- * <em>Lower Cased Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Lower Cased Names</em>' attribute.
- * @see #isLowerCasedNames()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isLowerCasedNames <em>Lower Cased Names</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Lower Cased Names</em>' attribute.
+ * @see #isLowerCasedNames()
+ * @generated
+ */
public void setLowerCasedNames(boolean newLowerCasedNames) {
- boolean oldLowerCasedNames = lowerCasedNames;
- lowerCasedNames = newLowerCasedNames;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES, oldLowerCasedNames, lowerCasedNames));
- }
- }
+ boolean oldLowerCasedNames = lowerCasedNames;
+ lowerCasedNames = newLowerCasedNames;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES, oldLowerCasedNames, lowerCasedNames));
+ }
/**
- * Returns the value of the '<em><b>Upper Cased Names</b></em>' attribute. The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Upper Cased Names</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Upper Cased Names</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Upper Cased Names</em>' attribute.
- * @see #setUpperCasedNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UpperCasedNames()
- * @model default="false"
- * @generated
- */
+ * @return the value of the '<em>Upper Cased Names</em>' attribute.
+ * @see #setUpperCasedNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UpperCasedNames()
+ * @model default="false"
+ * @generated
+ */
public boolean isUpperCasedNames() {
- return upperCasedNames;
- }
+ return upperCasedNames;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUpperCasedNames
- * <em>Upper Cased Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Upper Cased Names</em>' attribute.
- * @see #isUpperCasedNames()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUpperCasedNames <em>Upper Cased Names</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Upper Cased Names</em>' attribute.
+ * @see #isUpperCasedNames()
+ * @generated
+ */
public void setUpperCasedNames(boolean newUpperCasedNames) {
- boolean oldUpperCasedNames = upperCasedNames;
- upperCasedNames = newUpperCasedNames;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES, oldUpperCasedNames, upperCasedNames));
- }
- }
+ boolean oldUpperCasedNames = upperCasedNames;
+ upperCasedNames = newUpperCasedNames;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES, oldUpperCasedNames, upperCasedNames));
+ }
/**
- * Returns the value of the '<em><b>Enforce Unique Names</b></em>' attribute. The default value is <code>"true"</code>
- * . <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Enforce Unique Names</b></em>' attribute.
+ * The default value is <code>"true"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Enforce Unique Names</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Enforce Unique Names</em>' attribute.
- * @see #setEnforceUniqueNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_EnforceUniqueNames()
- * @model default="true"
- * @generated
- */
+ * @return the value of the '<em>Enforce Unique Names</em>' attribute.
+ * @see #setEnforceUniqueNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_EnforceUniqueNames()
+ * @model default="true"
+ * @generated
+ */
public boolean isEnforceUniqueNames() {
- return enforceUniqueNames;
- }
+ return enforceUniqueNames;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isEnforceUniqueNames
- * <em>Enforce Unique Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Enforce Unique Names</em>' attribute.
- * @see #isEnforceUniqueNames()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isEnforceUniqueNames <em>Enforce Unique Names</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Enforce Unique Names</em>' attribute.
+ * @see #isEnforceUniqueNames()
+ * @generated
+ */
public void setEnforceUniqueNames(boolean newEnforceUniqueNames) {
- boolean oldEnforceUniqueNames = enforceUniqueNames;
- enforceUniqueNames = newEnforceUniqueNames;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES, oldEnforceUniqueNames,
- enforceUniqueNames));
- }
- }
+ boolean oldEnforceUniqueNames = enforceUniqueNames;
+ enforceUniqueNames = newEnforceUniqueNames;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES, oldEnforceUniqueNames, enforceUniqueNames));
+ }
/**
- * Returns the value of the '<em><b>Use Join Tables For Containment</b></em>' attribute. The default value is
- * <code>"false"</code>. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Use Join Tables For Containment</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Use Join Tables For Containment</em>' attribute isn't clear, there really should be more
* of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Use Join Tables For Containment</em>' attribute.
- * @see #setUseJoinTablesForContainment(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UseJoinTablesForContainment()
- * @model default="false"
- * @generated
- */
+ * @return the value of the '<em>Use Join Tables For Containment</em>' attribute.
+ * @see #setUseJoinTablesForContainment(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UseJoinTablesForContainment()
+ * @model default="false"
+ * @generated
+ */
public boolean isUseJoinTablesForContainment() {
- return useJoinTablesForContainment;
- }
+ return useJoinTablesForContainment;
+ }
/**
- * Sets the value of the '
- * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForContainment
- * <em>Use Join Tables For Containment</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Use Join Tables For Containment</em>' attribute.
- * @see #isUseJoinTablesForContainment()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForContainment <em>Use Join Tables For Containment</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Use Join Tables For Containment</em>' attribute.
+ * @see #isUseJoinTablesForContainment()
+ * @generated
+ */
public void setUseJoinTablesForContainment(boolean newUseJoinTablesForContainment) {
- boolean oldUseJoinTablesForContainment = useJoinTablesForContainment;
- useJoinTablesForContainment = newUseJoinTablesForContainment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT,
- oldUseJoinTablesForContainment, useJoinTablesForContainment));
- }
- }
+ boolean oldUseJoinTablesForContainment = useJoinTablesForContainment;
+ useJoinTablesForContainment = newUseJoinTablesForContainment;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT, oldUseJoinTablesForContainment, useJoinTablesForContainment));
+ }
/**
- * Returns the value of the '<em><b>Use Join Tables For Non Containment</b></em>' attribute. The default value is
- * <code>"true"</code>. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Use Join Tables For Non Containment</b></em>' attribute.
+ * The default value is <code>"true"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Use Join Tables For Non Containment</em>' attribute isn't clear, there really should be
* more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Use Join Tables For Non Containment</em>' attribute.
- * @see #setUseJoinTablesForNonContainment(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UseJoinTablesForNonContainment()
- * @model default="true"
- * @generated
- */
+ * @return the value of the '<em>Use Join Tables For Non Containment</em>' attribute.
+ * @see #setUseJoinTablesForNonContainment(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UseJoinTablesForNonContainment()
+ * @model default="true"
+ * @generated
+ */
public boolean isUseJoinTablesForNonContainment() {
- return useJoinTablesForNonContainment;
- }
+ return useJoinTablesForNonContainment;
+ }
/**
- * Sets the value of the '
- * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForNonContainment
- * <em>Use Join Tables For Non Containment</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Use Join Tables For Non Containment</em>' attribute.
- * @see #isUseJoinTablesForNonContainment()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUseJoinTablesForNonContainment <em>Use Join Tables For Non Containment</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Use Join Tables For Non Containment</em>' attribute.
+ * @see #isUseJoinTablesForNonContainment()
+ * @generated
+ */
public void setUseJoinTablesForNonContainment(boolean newUseJoinTablesForNonContainment) {
- boolean oldUseJoinTablesForNonContainment = useJoinTablesForNonContainment;
- useJoinTablesForNonContainment = newUseJoinTablesForNonContainment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT,
- oldUseJoinTablesForNonContainment, useJoinTablesForNonContainment));
- }
- }
+ boolean oldUseJoinTablesForNonContainment = useJoinTablesForNonContainment;
+ useJoinTablesForNonContainment = newUseJoinTablesForNonContainment;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT, oldUseJoinTablesForNonContainment, useJoinTablesForNonContainment));
+ }
/**
- * Returns the value of the '<em><b>Default Cascade Containment</b></em>' containment reference. <!-- begin-user-doc
+ * Returns the value of the '<em><b>Default Cascade Containment</b></em>' containment reference.
+ * <!-- begin-user-doc
* -->
* <p>
* If the meaning of the '<em>Default Cascade Containment</em>' containment reference isn't clear, there really should
* be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Default Cascade Containment</em>' containment reference.
- * @see #setDefaultCascadeContainment(CascadeType)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_DefaultCascadeContainment()
- * @model containment="true"
- * @generated
- */
+ * @return the value of the '<em>Default Cascade Containment</em>' containment reference.
+ * @see #setDefaultCascadeContainment(CascadeType)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_DefaultCascadeContainment()
+ * @model containment="true"
+ * @generated
+ */
public CascadeType getDefaultCascadeContainment() {
- return defaultCascadeContainment;
- }
+ return defaultCascadeContainment;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
public NotificationChain basicSetDefaultCascadeContainment(CascadeType newDefaultCascadeContainment,
NotificationChain msgs) {
- CascadeType oldDefaultCascadeContainment = defaultCascadeContainment;
- defaultCascadeContainment = newDefaultCascadeContainment;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, oldDefaultCascadeContainment,
- newDefaultCascadeContainment);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
+ CascadeType oldDefaultCascadeContainment = defaultCascadeContainment;
+ defaultCascadeContainment = newDefaultCascadeContainment;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, oldDefaultCascadeContainment, newDefaultCascadeContainment);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '
- * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeContainment
- * <em>Default Cascade Containment</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Default Cascade Containment</em>' containment reference.
- * @see #getDefaultCascadeContainment()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeContainment <em>Default Cascade Containment</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Default Cascade Containment</em>' containment reference.
+ * @see #getDefaultCascadeContainment()
+ * @generated
+ */
public void setDefaultCascadeContainment(CascadeType newDefaultCascadeContainment) {
- if (newDefaultCascadeContainment != defaultCascadeContainment) {
- NotificationChain msgs = null;
- if (defaultCascadeContainment != null) {
- msgs = ((InternalEObject) defaultCascadeContainment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, null, msgs);
- }
- if (newDefaultCascadeContainment != null) {
- msgs = ((InternalEObject) newDefaultCascadeContainment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, null, msgs);
- }
- msgs = basicSetDefaultCascadeContainment(newDefaultCascadeContainment, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- } else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, newDefaultCascadeContainment,
- newDefaultCascadeContainment));
- }
- }
+ if (newDefaultCascadeContainment != defaultCascadeContainment) {
+ NotificationChain msgs = null;
+ if (defaultCascadeContainment != null)
+ msgs = ((InternalEObject)defaultCascadeContainment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, null, msgs);
+ if (newDefaultCascadeContainment != null)
+ msgs = ((InternalEObject)newDefaultCascadeContainment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, null, msgs);
+ msgs = basicSetDefaultCascadeContainment(newDefaultCascadeContainment, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT, newDefaultCascadeContainment, newDefaultCascadeContainment));
+ }
/**
* Returns the value of the '<em><b>Default Cascade Non Containment</b></em>' containment reference. <!--
@@ -866,130 +788,97 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
* @generated
*/
public CascadeType getDefaultCascadeNonContainment() {
- return defaultCascadeNonContainment;
- }
+ return defaultCascadeNonContainment;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
public NotificationChain basicSetDefaultCascadeNonContainment(CascadeType newDefaultCascadeNonContainment,
NotificationChain msgs) {
- CascadeType oldDefaultCascadeNonContainment = defaultCascadeNonContainment;
- defaultCascadeNonContainment = newDefaultCascadeNonContainment;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT,
- oldDefaultCascadeNonContainment, newDefaultCascadeNonContainment);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
+ CascadeType oldDefaultCascadeNonContainment = defaultCascadeNonContainment;
+ defaultCascadeNonContainment = newDefaultCascadeNonContainment;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, oldDefaultCascadeNonContainment, newDefaultCascadeNonContainment);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '
- * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeNonContainment
- * <em>Default Cascade Non Containment</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Default Cascade Non Containment</em>' containment reference.
- * @see #getDefaultCascadeNonContainment()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getDefaultCascadeNonContainment <em>Default Cascade Non Containment</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Default Cascade Non Containment</em>' containment reference.
+ * @see #getDefaultCascadeNonContainment()
+ * @generated
+ */
public void setDefaultCascadeNonContainment(CascadeType newDefaultCascadeNonContainment) {
- if (newDefaultCascadeNonContainment != defaultCascadeNonContainment) {
- NotificationChain msgs = null;
- if (defaultCascadeNonContainment != null) {
- msgs = ((InternalEObject) defaultCascadeNonContainment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, null, msgs);
- }
- if (newDefaultCascadeNonContainment != null) {
- msgs = ((InternalEObject) newDefaultCascadeNonContainment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, null, msgs);
- }
- msgs = basicSetDefaultCascadeNonContainment(newDefaultCascadeNonContainment, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- } else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT,
- newDefaultCascadeNonContainment, newDefaultCascadeNonContainment));
- }
- }
+ if (newDefaultCascadeNonContainment != defaultCascadeNonContainment) {
+ NotificationChain msgs = null;
+ if (defaultCascadeNonContainment != null)
+ msgs = ((InternalEObject)defaultCascadeNonContainment).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, null, msgs);
+ if (newDefaultCascadeNonContainment != null)
+ msgs = ((InternalEObject)newDefaultCascadeNonContainment).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, null, msgs);
+ msgs = basicSetDefaultCascadeNonContainment(newDefaultCascadeNonContainment, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT, newDefaultCascadeNonContainment, newDefaultCascadeNonContainment));
+ }
/**
- * Returns the value of the '<em><b>Entity Mappings</b></em>' containment reference. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Entity Mappings</b></em>' containment reference.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Entity Mappings</em>' containment reference isn't clear, there really should be more of
* a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Entity Mappings</em>' containment reference.
- * @see #setEntityMappings(EntityMappingsType)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_EntityMappings()
- * @model containment="true"
- * @generated
- */
+ * @return the value of the '<em>Entity Mappings</em>' containment reference.
+ * @see #setEntityMappings(EntityMappingsType)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_EntityMappings()
+ * @model containment="true"
+ * @generated
+ */
public EntityMappingsType getEntityMappings() {
- return entityMappings;
- }
+ return entityMappings;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
public NotificationChain basicSetEntityMappings(EntityMappingsType newEntityMappings, NotificationChain msgs) {
- EntityMappingsType oldEntityMappings = entityMappings;
- entityMappings = newEntityMappings;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, oldEntityMappings, newEntityMappings);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
+ EntityMappingsType oldEntityMappings = entityMappings;
+ entityMappings = newEntityMappings;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, oldEntityMappings, newEntityMappings);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getEntityMappings
- * <em>Entity Mappings</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Entity Mappings</em>' containment reference.
- * @see #getEntityMappings()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getEntityMappings <em>Entity Mappings</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Entity Mappings</em>' containment reference.
+ * @see #getEntityMappings()
+ * @generated
+ */
public void setEntityMappings(EntityMappingsType newEntityMappings) {
- if (newEntityMappings != entityMappings) {
- NotificationChain msgs = null;
- if (entityMappings != null) {
- msgs = ((InternalEObject) entityMappings).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, null, msgs);
- }
- if (newEntityMappings != null) {
- msgs = ((InternalEObject) newEntityMappings).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, null, msgs);
- }
- msgs = basicSetEntityMappings(newEntityMappings, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- } else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, newEntityMappings, newEntityMappings));
- }
- }
+ if (newEntityMappings != entityMappings) {
+ NotificationChain msgs = null;
+ if (entityMappings != null)
+ msgs = ((InternalEObject)entityMappings).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, null, msgs);
+ if (newEntityMappings != null)
+ msgs = ((InternalEObject)newEntityMappings).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, null, msgs);
+ msgs = basicSetEntityMappings(newEntityMappings, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS, newEntityMappings, newEntityMappings));
+ }
/**
* Returns the value of the '<em><b>Generate Java Annotations</b></em>' attribute. The default value is
@@ -1013,453 +902,455 @@ public class EPackageORMAnnotation extends EPackageAnnotation implements ENamedE
}
/**
- * Sets the value of the '
- * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateJavaAnnotations
- * <em>Generate Java Annotations</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Generate Java Annotations</em>' attribute.
- * @see #isGenerateJavaAnnotations()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isGenerateJavaAnnotations <em>Generate Java Annotations</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Generate Java Annotations</em>' attribute.
+ * @see #isGenerateJavaAnnotations()
+ * @generated
+ */
public void setGenerateJavaAnnotations(boolean newGenerateJavaAnnotations) {
- boolean oldGenerateJavaAnnotations = generateJavaAnnotations;
- generateJavaAnnotations = newGenerateJavaAnnotations;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS, oldGenerateJavaAnnotations,
- generateJavaAnnotations));
- }
- }
+ boolean oldGenerateJavaAnnotations = generateJavaAnnotations;
+ generateJavaAnnotations = newGenerateJavaAnnotations;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS, oldGenerateJavaAnnotations, generateJavaAnnotations));
+ }
/**
- * Returns the value of the '<em><b>Add Order Column To List Mappings</b></em>' attribute. The default value is
- * <code>"false"</code>. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Add Order Column To List Mappings</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Add Order Column To List Mappings</em>' attribute isn't clear, there really should be
* more of a description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Add Order Column To List Mappings</em>' attribute.
- * @see #setAddOrderColumnToListMappings(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_AddOrderColumnToListMappings()
- * @model default="false"
- * @generated
- */
+ * @return the value of the '<em>Add Order Column To List Mappings</em>' attribute.
+ * @see #setAddOrderColumnToListMappings(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_AddOrderColumnToListMappings()
+ * @model default="false"
+ * @generated
+ */
public boolean isAddOrderColumnToListMappings() {
- return addOrderColumnToListMappings;
- }
+ return addOrderColumnToListMappings;
+ }
/**
- * Sets the value of the '
- * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isAddOrderColumnToListMappings
- * <em>Add Order Column To List Mappings</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Add Order Column To List Mappings</em>' attribute.
- * @see #isAddOrderColumnToListMappings()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isAddOrderColumnToListMappings <em>Add Order Column To List Mappings</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Add Order Column To List Mappings</em>' attribute.
+ * @see #isAddOrderColumnToListMappings()
+ * @generated
+ */
public void setAddOrderColumnToListMappings(boolean newAddOrderColumnToListMappings) {
- boolean oldAddOrderColumnToListMappings = addOrderColumnToListMappings;
- addOrderColumnToListMappings = newAddOrderColumnToListMappings;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS,
- oldAddOrderColumnToListMappings, addOrderColumnToListMappings));
- }
- }
+ boolean oldAddOrderColumnToListMappings = addOrderColumnToListMappings;
+ addOrderColumnToListMappings = newAddOrderColumnToListMappings;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS, oldAddOrderColumnToListMappings, addOrderColumnToListMappings));
+ }
/**
- * Returns the value of the '<em><b>Rename SQL Reserved Names</b></em>' attribute. The default value is
- * <code>"true"</code>. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Rename SQL Reserved Names</b></em>' attribute.
+ * The default value is <code>"true"</code>.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Rename SQL Reserved Names</em>' attribute isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Rename SQL Reserved Names</em>' attribute.
- * @see #setRenameSQLReservedNames(boolean)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_RenameSQLReservedNames()
- * @model default="true"
- * @generated
- */
+ * @return the value of the '<em>Rename SQL Reserved Names</em>' attribute.
+ * @see #setRenameSQLReservedNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_RenameSQLReservedNames()
+ * @model default="true"
+ * @generated
+ */
public boolean isRenameSQLReservedNames() {
- return renameSQLReservedNames;
- }
+ return renameSQLReservedNames;
+ }
/**
- * Sets the value of the '
- * {@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isRenameSQLReservedNames
- * <em>Rename SQL Reserved Names</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Rename SQL Reserved Names</em>' attribute.
- * @see #isRenameSQLReservedNames()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isRenameSQLReservedNames <em>Rename SQL Reserved Names</em>}' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Rename SQL Reserved Names</em>' attribute.
+ * @see #isRenameSQLReservedNames()
+ * @generated
+ */
public void setRenameSQLReservedNames(boolean newRenameSQLReservedNames) {
- boolean oldRenameSQLReservedNames = renameSQLReservedNames;
- renameSQLReservedNames = newRenameSQLReservedNames;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES, oldRenameSQLReservedNames,
- renameSQLReservedNames));
- }
- }
+ boolean oldRenameSQLReservedNames = renameSQLReservedNames;
+ renameSQLReservedNames = newRenameSQLReservedNames;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES, oldRenameSQLReservedNames, renameSQLReservedNames));
+ }
/**
- * Returns the value of the '<em><b>Inheritance</b></em>' containment reference. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Inheritance</b></em>' containment reference.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Inheritance</em>' containment reference isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- *
- * @return the value of the '<em>Inheritance</em>' containment reference.
- * @see #setInheritance(Inheritance)
- * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_Inheritance()
- * @model containment="true"
- * @generated
- */
+ * @return the value of the '<em>Inheritance</em>' containment reference.
+ * @see #setInheritance(Inheritance)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_Inheritance()
+ * @model containment="true"
+ * @generated
+ */
public Inheritance getInheritance() {
- return inheritance;
- }
+ return inheritance;
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
public NotificationChain basicSetInheritance(Inheritance newInheritance, NotificationChain msgs) {
- Inheritance oldInheritance = inheritance;
- inheritance = newInheritance;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
- OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, oldInheritance, newInheritance);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
+ Inheritance oldInheritance = inheritance;
+ inheritance = newInheritance;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, oldInheritance, newInheritance);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
/**
- * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getInheritance
- * <em>Inheritance</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Inheritance</em>' containment reference.
- * @see #getInheritance()
- * @generated
- */
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#getInheritance <em>Inheritance</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @param value the new value of the '<em>Inheritance</em>' containment reference.
+ * @see #getInheritance()
+ * @generated
+ */
public void setInheritance(Inheritance newInheritance) {
- if (newInheritance != inheritance) {
- NotificationChain msgs = null;
- if (inheritance != null) {
- msgs = ((InternalEObject) inheritance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
- - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, null, msgs);
- }
- if (newInheritance != null) {
- msgs = ((InternalEObject) newInheritance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
- - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, null, msgs);
- }
- msgs = basicSetInheritance(newInheritance, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- } else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE,
- newInheritance, newInheritance));
- }
- }
+ if (newInheritance != inheritance) {
+ NotificationChain msgs = null;
+ if (inheritance != null)
+ msgs = ((InternalEObject)inheritance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, null, msgs);
+ if (newInheritance != null)
+ msgs = ((InternalEObject)newInheritance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, null, msgs);
+ msgs = basicSetInheritance(newInheritance, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE, newInheritance, newInheritance));
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * Returns the value of the '<em><b>Unique Entity Names</b></em>' attribute.
+ * The default value is <code>"true"</code>.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Unique Entity Names</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Unique Entity Names</em>' attribute.
+ * @see #setUniqueEntityNames(boolean)
+ * @see org.eclipse.emf.texo.orm.ormannotations.OrmannotationsPackage#getEPackageORMAnnotation_UniqueEntityNames()
+ * @model default="true"
+ * @generated
+ */
+ public boolean isUniqueEntityNames() {
+ return uniqueEntityNames;
+ }
+
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUniqueEntityNames <em>Unique Entity Names</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Unique Entity Names</em>' attribute.
+ * @see #isUniqueEntityNames()
+ * @generated
+ */
+ public void setUniqueEntityNames(boolean newUniqueEntityNames) {
+ boolean oldUniqueEntityNames = uniqueEntityNames;
+ uniqueEntityNames = newUniqueEntityNames;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES, oldUniqueEntityNames, uniqueEntityNames));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
- return basicSetDefaultCascadeContainment(null, msgs);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
- return basicSetDefaultCascadeNonContainment(null, msgs);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
- return basicSetEntityMappings(null, msgs);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
- return basicSetInheritance(null, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
+ return basicSetDefaultCascadeContainment(null, msgs);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
+ return basicSetDefaultCascadeNonContainment(null, msgs);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
+ return basicSetEntityMappings(null, msgs);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
+ return basicSetInheritance(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
- return isGenerateFullDbSchemaNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
- return getNameDictionaryPropertyFile();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
- return getTableNamePrefix();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
- return getColumnNamePrefix();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
- return getMaximumSqlNameLength();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
- return isLowerCasedNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
- return isUpperCasedNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
- return isEnforceUniqueNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
- return isUseJoinTablesForContainment();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
- return isUseJoinTablesForNonContainment();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
- return getDefaultCascadeContainment();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
- return getDefaultCascadeNonContainment();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
- return getEntityMappings();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
- return isGenerateJavaAnnotations();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
- return isAddOrderColumnToListMappings();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
- return isRenameSQLReservedNames();
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
- return getInheritance();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
+ return isGenerateFullDbSchemaNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
+ return getNameDictionaryPropertyFile();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
+ return getTableNamePrefix();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
+ return getColumnNamePrefix();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
+ return getMaximumSqlNameLength();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
+ return isLowerCasedNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
+ return isUpperCasedNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
+ return isEnforceUniqueNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
+ return isUseJoinTablesForContainment();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
+ return isUseJoinTablesForNonContainment();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
+ return getDefaultCascadeContainment();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
+ return getDefaultCascadeNonContainment();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
+ return getEntityMappings();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
+ return isGenerateJavaAnnotations();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
+ return isAddOrderColumnToListMappings();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
+ return isRenameSQLReservedNames();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
+ return getInheritance();
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
+ return isUniqueEntityNames();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
@Override
public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
- setGenerateFullDbSchemaNames((Boolean) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
- setNameDictionaryPropertyFile((String) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
- setTableNamePrefix((String) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
- setColumnNamePrefix((String) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
- setMaximumSqlNameLength((Integer) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
- setLowerCasedNames((Boolean) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
- setUpperCasedNames((Boolean) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
- setEnforceUniqueNames((Boolean) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
- setUseJoinTablesForContainment((Boolean) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
- setUseJoinTablesForNonContainment((Boolean) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
- setDefaultCascadeContainment((CascadeType) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
- setDefaultCascadeNonContainment((CascadeType) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
- setEntityMappings((EntityMappingsType) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
- setGenerateJavaAnnotations((Boolean) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
- setAddOrderColumnToListMappings((Boolean) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
- setRenameSQLReservedNames((Boolean) newValue);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
- setInheritance((Inheritance) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
+ setGenerateFullDbSchemaNames((Boolean)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
+ setNameDictionaryPropertyFile((String)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
+ setTableNamePrefix((String)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
+ setColumnNamePrefix((String)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
+ setMaximumSqlNameLength((Integer)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
+ setLowerCasedNames((Boolean)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
+ setUpperCasedNames((Boolean)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
+ setEnforceUniqueNames((Boolean)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
+ setUseJoinTablesForContainment((Boolean)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
+ setUseJoinTablesForNonContainment((Boolean)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
+ setDefaultCascadeContainment((CascadeType)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
+ setDefaultCascadeNonContainment((CascadeType)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
+ setEntityMappings((EntityMappingsType)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
+ setGenerateJavaAnnotations((Boolean)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
+ setAddOrderColumnToListMappings((Boolean)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
+ setRenameSQLReservedNames((Boolean)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
+ setInheritance((Inheritance)newValue);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
+ setUniqueEntityNames((Boolean)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
@Override
public void eUnset(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
- setGenerateFullDbSchemaNames(GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
- setNameDictionaryPropertyFile(NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
- setTableNamePrefix(TABLE_NAME_PREFIX_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
- setColumnNamePrefix(COLUMN_NAME_PREFIX_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
- setMaximumSqlNameLength(MAXIMUM_SQL_NAME_LENGTH_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
- setLowerCasedNames(LOWER_CASED_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
- setUpperCasedNames(UPPER_CASED_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
- setEnforceUniqueNames(ENFORCE_UNIQUE_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
- setUseJoinTablesForContainment(USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
- setUseJoinTablesForNonContainment(USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
- setDefaultCascadeContainment((CascadeType) null);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
- setDefaultCascadeNonContainment((CascadeType) null);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
- setEntityMappings((EntityMappingsType) null);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
- setGenerateJavaAnnotations(GENERATE_JAVA_ANNOTATIONS_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
- setAddOrderColumnToListMappings(ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
- setRenameSQLReservedNames(RENAME_SQL_RESERVED_NAMES_EDEFAULT);
- return;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
- setInheritance((Inheritance) null);
- return;
- }
- super.eUnset(featureID);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
+ setGenerateFullDbSchemaNames(GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
+ setNameDictionaryPropertyFile(NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
+ setTableNamePrefix(TABLE_NAME_PREFIX_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
+ setColumnNamePrefix(COLUMN_NAME_PREFIX_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
+ setMaximumSqlNameLength(MAXIMUM_SQL_NAME_LENGTH_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
+ setLowerCasedNames(LOWER_CASED_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
+ setUpperCasedNames(UPPER_CASED_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
+ setEnforceUniqueNames(ENFORCE_UNIQUE_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
+ setUseJoinTablesForContainment(USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
+ setUseJoinTablesForNonContainment(USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
+ setDefaultCascadeContainment((CascadeType)null);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
+ setDefaultCascadeNonContainment((CascadeType)null);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
+ setEntityMappings((EntityMappingsType)null);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
+ setGenerateJavaAnnotations(GENERATE_JAVA_ANNOTATIONS_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
+ setAddOrderColumnToListMappings(ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
+ setRenameSQLReservedNames(RENAME_SQL_RESERVED_NAMES_EDEFAULT);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
+ setInheritance((Inheritance)null);
+ return;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
+ setUniqueEntityNames(UNIQUE_ENTITY_NAMES_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
@Override
public boolean eIsSet(int featureID) {
- switch (featureID) {
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
- return generateFullDbSchemaNames != GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
- return NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT == null ? nameDictionaryPropertyFile != null
- : !NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT.equals(nameDictionaryPropertyFile);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
- return TABLE_NAME_PREFIX_EDEFAULT == null ? tableNamePrefix != null : !TABLE_NAME_PREFIX_EDEFAULT
- .equals(tableNamePrefix);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
- return COLUMN_NAME_PREFIX_EDEFAULT == null ? columnNamePrefix != null : !COLUMN_NAME_PREFIX_EDEFAULT
- .equals(columnNamePrefix);
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
- return maximumSqlNameLength != MAXIMUM_SQL_NAME_LENGTH_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
- return lowerCasedNames != LOWER_CASED_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
- return upperCasedNames != UPPER_CASED_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
- return enforceUniqueNames != ENFORCE_UNIQUE_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
- return useJoinTablesForContainment != USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
- return useJoinTablesForNonContainment != USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
- return defaultCascadeContainment != null;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
- return defaultCascadeNonContainment != null;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
- return entityMappings != null;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
- return generateJavaAnnotations != GENERATE_JAVA_ANNOTATIONS_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
- return addOrderColumnToListMappings != ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
- return renameSQLReservedNames != RENAME_SQL_RESERVED_NAMES_EDEFAULT;
- case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
- return inheritance != null;
- }
- return super.eIsSet(featureID);
- }
+ switch (featureID) {
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_FULL_DB_SCHEMA_NAMES:
+ return generateFullDbSchemaNames != GENERATE_FULL_DB_SCHEMA_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__NAME_DICTIONARY_PROPERTY_FILE:
+ return NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT == null ? nameDictionaryPropertyFile != null : !NAME_DICTIONARY_PROPERTY_FILE_EDEFAULT.equals(nameDictionaryPropertyFile);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__TABLE_NAME_PREFIX:
+ return TABLE_NAME_PREFIX_EDEFAULT == null ? tableNamePrefix != null : !TABLE_NAME_PREFIX_EDEFAULT.equals(tableNamePrefix);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__COLUMN_NAME_PREFIX:
+ return COLUMN_NAME_PREFIX_EDEFAULT == null ? columnNamePrefix != null : !COLUMN_NAME_PREFIX_EDEFAULT.equals(columnNamePrefix);
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__MAXIMUM_SQL_NAME_LENGTH:
+ return maximumSqlNameLength != MAXIMUM_SQL_NAME_LENGTH_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__LOWER_CASED_NAMES:
+ return lowerCasedNames != LOWER_CASED_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UPPER_CASED_NAMES:
+ return upperCasedNames != UPPER_CASED_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENFORCE_UNIQUE_NAMES:
+ return enforceUniqueNames != ENFORCE_UNIQUE_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_CONTAINMENT:
+ return useJoinTablesForContainment != USE_JOIN_TABLES_FOR_CONTAINMENT_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__USE_JOIN_TABLES_FOR_NON_CONTAINMENT:
+ return useJoinTablesForNonContainment != USE_JOIN_TABLES_FOR_NON_CONTAINMENT_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_CONTAINMENT:
+ return defaultCascadeContainment != null;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__DEFAULT_CASCADE_NON_CONTAINMENT:
+ return defaultCascadeNonContainment != null;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ENTITY_MAPPINGS:
+ return entityMappings != null;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__GENERATE_JAVA_ANNOTATIONS:
+ return generateJavaAnnotations != GENERATE_JAVA_ANNOTATIONS_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS:
+ return addOrderColumnToListMappings != ADD_ORDER_COLUMN_TO_LIST_MAPPINGS_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES:
+ return renameSQLReservedNames != RENAME_SQL_RESERVED_NAMES_EDEFAULT;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__INHERITANCE:
+ return inheritance != null;
+ case OrmannotationsPackage.EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES:
+ return uniqueEntityNames != UNIQUE_ENTITY_NAMES_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
/**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ * @generated
+ */
@Override
public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
+ if (eIsProxy()) return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (generateFullDbSchemaNames: ");
- result.append(generateFullDbSchemaNames);
- result.append(", nameDictionaryPropertyFile: ");
- result.append(nameDictionaryPropertyFile);
- result.append(", tableNamePrefix: ");
- result.append(tableNamePrefix);
- result.append(", columnNamePrefix: ");
- result.append(columnNamePrefix);
- result.append(", maximumSqlNameLength: ");
- result.append(maximumSqlNameLength);
- result.append(", lowerCasedNames: ");
- result.append(lowerCasedNames);
- result.append(", upperCasedNames: ");
- result.append(upperCasedNames);
- result.append(", enforceUniqueNames: ");
- result.append(enforceUniqueNames);
- result.append(", useJoinTablesForContainment: ");
- result.append(useJoinTablesForContainment);
- result.append(", useJoinTablesForNonContainment: ");
- result.append(useJoinTablesForNonContainment);
- result.append(", generateJavaAnnotations: ");
- result.append(generateJavaAnnotations);
- result.append(", addOrderColumnToListMappings: ");
- result.append(addOrderColumnToListMappings);
- result.append(", renameSQLReservedNames: ");
- result.append(renameSQLReservedNames);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (generateFullDbSchemaNames: ");
+ result.append(generateFullDbSchemaNames);
+ result.append(", nameDictionaryPropertyFile: ");
+ result.append(nameDictionaryPropertyFile);
+ result.append(", tableNamePrefix: ");
+ result.append(tableNamePrefix);
+ result.append(", columnNamePrefix: ");
+ result.append(columnNamePrefix);
+ result.append(", maximumSqlNameLength: ");
+ result.append(maximumSqlNameLength);
+ result.append(", lowerCasedNames: ");
+ result.append(lowerCasedNames);
+ result.append(", upperCasedNames: ");
+ result.append(upperCasedNames);
+ result.append(", enforceUniqueNames: ");
+ result.append(enforceUniqueNames);
+ result.append(", useJoinTablesForContainment: ");
+ result.append(useJoinTablesForContainment);
+ result.append(", useJoinTablesForNonContainment: ");
+ result.append(useJoinTablesForNonContainment);
+ result.append(", generateJavaAnnotations: ");
+ result.append(generateJavaAnnotations);
+ result.append(", addOrderColumnToListMappings: ");
+ result.append(addOrderColumnToListMappings);
+ result.append(", renameSQLReservedNames: ");
+ result.append(renameSQLReservedNames);
+ result.append(", uniqueEntityNames: ");
+ result.append(uniqueEntityNames);
+ result.append(')');
+ return result.toString();
+ }
@Override
// in the constructor to support testcases certain members are
diff --git a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/OrmannotationsPackage.java b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/OrmannotationsPackage.java
index bc7a59fd..2005945c 100755
--- a/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/OrmannotationsPackage.java
+++ b/generator/org.eclipse.emf.texo.orm/src/org/eclipse/emf/texo/orm/ormannotations/OrmannotationsPackage.java
@@ -266,13 +266,22 @@ public class OrmannotationsPackage extends EPackageImpl {
public static final int EPACKAGE_ORM_ANNOTATION__INHERITANCE = AnnotationsmodelPackage.EPACKAGE_ANNOTATION_FEATURE_COUNT + 16;
/**
+ * The feature id for the '<em><b>Unique Entity Names</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ public static final int EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES = AnnotationsmodelPackage.EPACKAGE_ANNOTATION_FEATURE_COUNT + 17;
+
+ /**
* The number of structural features of the '<em>EPackage ORM Annotation</em>' class.
* <!-- begin-user-doc --> <!--
* end-user-doc -->
* @generated
* @ordered
*/
- public static final int EPACKAGE_ORM_ANNOTATION_FEATURE_COUNT = AnnotationsmodelPackage.EPACKAGE_ANNOTATION_FEATURE_COUNT + 17;
+ public static final int EPACKAGE_ORM_ANNOTATION_FEATURE_COUNT = AnnotationsmodelPackage.EPACKAGE_ANNOTATION_FEATURE_COUNT + 18;
/**
* The meta object id for the '{@link org.eclipse.emf.texo.orm.ormannotations.ENamedElementORMAnnotation <em>ENamed Element ORM Annotation</em>}' class.
@@ -1666,6 +1675,19 @@ public class OrmannotationsPackage extends EPackageImpl {
}
/**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUniqueEntityNames <em>Unique Entity Names</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Unique Entity Names</em>'.
+ * @see org.eclipse.emf.texo.orm.ormannotations.EPackageORMAnnotation#isUniqueEntityNames()
+ * @see #getEPackageORMAnnotation()
+ * @generated
+ */
+ public EAttribute getEPackageORMAnnotation_UniqueEntityNames() {
+ return (EAttribute)ePackageORMAnnotationEClass.getEStructuralFeatures().get(17);
+ }
+
+ /**
* Returns the meta object for class '{@link org.eclipse.emf.texo.orm.ormannotations.ETypeElementORMAnnotation <em>EType Element ORM Annotation</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the meta object for class '<em>EType Element ORM Annotation</em>'.
@@ -2364,6 +2386,7 @@ public class OrmannotationsPackage extends EPackageImpl {
createEAttribute(ePackageORMAnnotationEClass, EPACKAGE_ORM_ANNOTATION__ADD_ORDER_COLUMN_TO_LIST_MAPPINGS);
createEAttribute(ePackageORMAnnotationEClass, EPACKAGE_ORM_ANNOTATION__RENAME_SQL_RESERVED_NAMES);
createEReference(ePackageORMAnnotationEClass, EPACKAGE_ORM_ANNOTATION__INHERITANCE);
+ createEAttribute(ePackageORMAnnotationEClass, EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES);
eTypeElementORMAnnotationEClass = createEClass(ETYPE_ELEMENT_ORM_ANNOTATION);
createEReference(eTypeElementORMAnnotationEClass, ETYPE_ELEMENT_ORM_ANNOTATION__TRANSIENT);
@@ -2495,6 +2518,7 @@ public class OrmannotationsPackage extends EPackageImpl {
initEAttribute(getEPackageORMAnnotation_AddOrderColumnToListMappings(), theEcorePackage.getEBoolean(), "addOrderColumnToListMappings", "false", 0, 1, EPackageORMAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getEPackageORMAnnotation_RenameSQLReservedNames(), theEcorePackage.getEBoolean(), "renameSQLReservedNames", "true", 0, 1, EPackageORMAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEReference(getEPackageORMAnnotation_Inheritance(), theOrmPackage.getInheritance(), null, "inheritance", null, 0, 1, EPackageORMAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getEPackageORMAnnotation_UniqueEntityNames(), theEcorePackage.getEBoolean(), "uniqueEntityNames", "true", 0, 1, EPackageORMAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEClass(eTypeElementORMAnnotationEClass, ETypeElementORMAnnotation.class, "ETypeElementORMAnnotation", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEReference(getETypeElementORMAnnotation_Transient(), theOrmPackage.getTransient(), null, "transient", null, 0, 1, ETypeElementORMAnnotation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
@@ -2718,6 +2742,14 @@ public class OrmannotationsPackage extends EPackageImpl {
public static final EReference EPACKAGE_ORM_ANNOTATION__INHERITANCE = eINSTANCE.getEPackageORMAnnotation_Inheritance();
/**
+ * The meta object literal for the '<em><b>Unique Entity Names</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final EAttribute EPACKAGE_ORM_ANNOTATION__UNIQUE_ENTITY_NAMES = eINSTANCE.getEPackageORMAnnotation_UniqueEntityNames();
+
+ /**
* The meta object literal for the '{@link org.eclipse.emf.texo.orm.ormannotations.ETypeElementORMAnnotation <em>EType Element ORM Annotation</em>}' class.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @see org.eclipse.emf.texo.orm.ormannotations.ETypeElementORMAnnotation

Back to the top