diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attributeoverrides/impl/AttributeoverridesPackageImpl.java')
-rwxr-xr-x | tests/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attributeoverrides/impl/AttributeoverridesPackageImpl.java | 51 |
1 files changed, 34 insertions, 17 deletions
diff --git a/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attributeoverrides/impl/AttributeoverridesPackageImpl.java b/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attributeoverrides/impl/AttributeoverridesPackageImpl.java index 590662532..a3a8514ea 100755 --- a/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attributeoverrides/impl/AttributeoverridesPackageImpl.java +++ b/tests/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attributeoverrides/impl/AttributeoverridesPackageImpl.java @@ -64,20 +64,10 @@ public class AttributeoverridesPackageImpl extends EPackageImpl implements Attri private static boolean isInited = false; /** - * Creates, registers, and initializes the <b>Package</b> for this - * model, and for any others upon which it depends. Simple - * dependencies are satisfied by calling this method on all - * dependent packages before doing anything else. This method drives - * initialization for interdependent packages directly, in parallel - * with this package, itself. - * <p>Of this package and its interdependencies, all packages which - * have not yet been registered by their URI values are first created - * and registered. The packages are then initialized in two steps: - * meta-model objects for all of the packages are created before any - * are initialized, since one package's meta-model objects may refer to - * those of another. - * <p>Invocation of this method will not affect any packages that have - * already been initialized. + * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. + * + * <p>This method is used to initialize {@link AttributeoverridesPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #eNS_URI @@ -89,7 +79,7 @@ public class AttributeoverridesPackageImpl extends EPackageImpl implements Attri if (isInited) return (AttributeoverridesPackage)EPackage.Registry.INSTANCE.getEPackage(AttributeoverridesPackage.eNS_URI); // Obtain or create and register package - AttributeoverridesPackageImpl theAttributeoverridesPackage = (AttributeoverridesPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof AttributeoverridesPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new AttributeoverridesPackageImpl()); + AttributeoverridesPackageImpl theAttributeoverridesPackage = (AttributeoverridesPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AttributeoverridesPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AttributeoverridesPackageImpl()); isInited = true; @@ -102,6 +92,9 @@ public class AttributeoverridesPackageImpl extends EPackageImpl implements Attri // Mark meta-data to indicate it can't be changed theAttributeoverridesPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(AttributeoverridesPackage.eNS_URI, theAttributeoverridesPackage); return theAttributeoverridesPackage; } @@ -251,6 +244,8 @@ public class AttributeoverridesPackageImpl extends EPackageImpl implements Attri // Create annotations // teneo.jpa createTeneoAnnotations(); + // teneo.jpa.auditing + createTeneo_1Annotations(); } /** @@ -266,13 +261,13 @@ public class AttributeoverridesPackageImpl extends EPackageImpl implements Attri source, new String[] { "appinfo", "@Embedded\n@AttributeOverride(name=\"name\" column=@Column(name=\"bornNameColumn\"))" - }); + }); addAnnotation (getPerson_LivesIn(), source, new String[] { "appinfo", "@Embedded\n@AttributeOverrides({\n\t@AttributeOverride(name=\"name\" column=@Column(name=\"nameColumn\")),\n\t@AttributeOverride(name=\"country\" column=@Column(name=\"countryColumn\"))\n})" - }); + }); addAnnotation (cityEClass, source, @@ -281,4 +276,26 @@ public class AttributeoverridesPackageImpl extends EPackageImpl implements Attri }); } + /** + * Initializes the annotations for <b>teneo.jpa.auditing</b>. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected void createTeneo_1Annotations() { + String source = "teneo.jpa.auditing"; + addAnnotation + (getPerson_BornIn(), + source, + new String[] { + "appinfo", "@Embedded\n@AttributeOverride(name=\"name\" column=@Column(name=\"bornNameColumn\"))" + }); + addAnnotation + (getPerson_LivesIn(), + source, + new String[] { + "appinfo", "@Embedded\n@AttributeOverrides({\n\t@AttributeOverride(name=\"name\" column=@Column(name=\"nameColumn\")),\n\t@AttributeOverride(name=\"country\" column=@Column(name=\"countryColumn\"))\n})" + }); + } + } //AttributeoverridesPackageImpl |