diff options
author | Martin Taal | 2012-11-22 18:14:48 +0000 |
---|---|---|
committer | Martin Taal | 2012-11-22 18:14:48 +0000 |
commit | 054eb3bc16ce5e6a0ab79c211d6666343205e048 (patch) | |
tree | 123d9c4a5de5c5077925ac55e6ba8a14fcd0bad8 | |
parent | 9522cf45dee8c6877514565d65bf0b98492029b0 (diff) | |
download | org.eclipse.emf.teneo-054eb3bc16ce5e6a0ab79c211d6666343205e048.tar.gz org.eclipse.emf.teneo-054eb3bc16ce5e6a0ab79c211d6666343205e048.tar.xz org.eclipse.emf.teneo-054eb3bc16ce5e6a0ab79c211d6666343205e048.zip |
Various changes to support auditing
16 files changed, 826 insertions, 1000 deletions
diff --git a/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/util/StoreUtil.java b/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/util/StoreUtil.java index 3eb299d68..db94b4e77 100755 --- a/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/util/StoreUtil.java +++ b/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/util/StoreUtil.java @@ -344,8 +344,15 @@ public class StoreUtil { */ } + public static EStructuralFeature stringToStructureFeature( + String strid) { + return stringToStructureFeature(PackageRegistryProvider.getInstance().getPackageRegistry(), + strid); + } + /** Translates a string to a structural feature */ - public static EStructuralFeature stringToStructureFeature(String strid) { + public static EStructuralFeature stringToStructureFeature(EPackage.Registry packageRegistry, + String strid) { // this method expects a dbid consisting of three parts separated by / int lastIndex = strid.lastIndexOf(PATH_SEPARATOR); int beforeLastIndex = strid.lastIndexOf(PATH_SEPARATOR, lastIndex - 1); @@ -360,8 +367,7 @@ public class StoreUtil { final String eclassName = strid.substring(beforeLastIndex + 1, lastIndex); final String featureName = strid.substring(lastIndex + 1); - final EPackage epack = PackageRegistryProvider.getInstance().getPackageRegistry() - .getEPackage(nsuri); + final EPackage epack = packageRegistry.getEPackage(nsuri); if (epack == null) { throw new TeneoException("The dbid " + strid + " and nsuri: " + nsuri + " does not resolve to an epackage"); diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/model/hbauditing.ecore b/hibernate/org.eclipse.emf.teneo.hibernate/model/hbauditing.ecore index eb5339275..2d57127c8 100755 --- a/hibernate/org.eclipse.emf.teneo.hibernate/model/hbauditing.ecore +++ b/hibernate/org.eclipse.emf.teneo.hibernate/model/hbauditing.ecore @@ -53,9 +53,10 @@ <eStructuralFeatures xsi:type="ecore:EAttribute" name="user" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> <eAnnotations source="teneo.jpa"> - <details key="value" value="@Lob"/> + <details key="value" value="@Column(length=2000)"/> </eAnnotations> </eStructuralFeatures> + <eStructuralFeatures xsi:type="ecore:EAttribute" name="commitTime" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong"/> </eClassifiers> <eClassifiers xsi:type="ecore:EEnum" name="TeneoAuditKind"> <eLiterals name="ADD"/> diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/model/hbauditing.genmodel b/hibernate/org.eclipse.emf.teneo.hibernate/model/hbauditing.genmodel index 4df20b7d4..1018b6da7 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/model/hbauditing.genmodel +++ b/hibernate/org.eclipse.emf.teneo.hibernate/model/hbauditing.genmodel @@ -29,6 +29,7 @@ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute hbauditing.ecore#//TeneoAuditCommitInfo/version"/> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute hbauditing.ecore#//TeneoAuditCommitInfo/user"/> <genFeatures createChild="false" ecoreFeature="ecore:EAttribute hbauditing.ecore#//TeneoAuditCommitInfo/comment"/> + <genFeatures createChild="false" ecoreFeature="ecore:EAttribute hbauditing.ecore#//TeneoAuditCommitInfo/commitTime"/> </genClasses> </genPackages> </genmodel:GenModel> diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/AuditHandler.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/AuditHandler.java index 5f6f57f4e..a347c6cb3 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/AuditHandler.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/AuditHandler.java @@ -135,10 +135,12 @@ public class AuditHandler implements ExtensionPoint { } else { if (sourceEFeature.isMany()) { if (StoreUtil.isMap(sourceEFeature)) { - convertEMap(session, source, (EReference) sourceEFeature, auditEntry, + convertEMap(session, ((Collection<?>) source.eGet(sourceEFeature)), + (EReference) sourceEFeature, auditEntry, (EReference) targetEFeature); } else if (FeatureMapUtil.isFeatureMap(sourceEFeature)) { - convertFeatureMap(session, source, sourceEFeature, auditEntry, targetEFeature); + convertFeatureMap(session, ((Collection<?>) source.eGet(sourceEFeature)), + sourceEFeature, auditEntry, targetEFeature); } else { for (Object value : (Collection<?>) source.eGet(sourceEFeature)) { ((Collection<Object>) auditEntry.eGet(targetEFeature)).add(convertValue( @@ -155,7 +157,7 @@ public class AuditHandler implements ExtensionPoint { } @SuppressWarnings("unchecked") - protected void convertEMap(Session session, EObject source, EReference sourceEReference, + protected void convertEMap(Session session, Collection<?> values, EReference sourceEReference, TeneoAuditEntry auditEntry, EReference targetEReference) { final EStructuralFeature keySourceEFeature = sourceEReference.getEReferenceType() @@ -166,7 +168,7 @@ public class AuditHandler implements ExtensionPoint { .getEStructuralFeature("key"); final EStructuralFeature valueTargetEFeature = targetEReference.getEReferenceType() .getEStructuralFeature("value"); - for (Object sourceEntry : ((Collection<?>) source.eGet(sourceEReference))) { + for (Object sourceEntry : values) { final EObject sourceMapEntry = (EObject) sourceEntry; final EObject mapEntry = EcoreUtil.create(targetEReference.getEReferenceType()); final Object key; @@ -188,10 +190,10 @@ public class AuditHandler implements ExtensionPoint { } @SuppressWarnings("unchecked") - protected void convertFeatureMap(Session session, EObject source, + protected void convertFeatureMap(Session session, Collection<?> values, EStructuralFeature sourceEFeature, TeneoAuditEntry auditEntry, EStructuralFeature targetEFeature) { - for (Object value : ((Collection<?>) source.eGet(sourceEFeature))) { + for (Object value : values) { final FeatureMap.Entry sourceEntry = (FeatureMap.Entry) value; final EStructuralFeature targetEntryFeature = getAuditingModelElement( sourceEntry.getEStructuralFeature(), auditEntry.eClass().getName()); @@ -318,7 +320,7 @@ public class AuditHandler implements ExtensionPoint { if (auditModelElement instanceof EClass) { return (T) StoreUtil.stringToEClass(dataStore.getPackageRegistry(), id); } - return (T) StoreUtil.stringToStructureFeature(id); + return (T) StoreUtil.stringToStructureFeature(getDataStore().getPackageRegistry(), id); } public EClass getAuditingModelElement(EClass modelElement) { @@ -368,7 +370,7 @@ public class AuditHandler implements ExtensionPoint { if (modelElement instanceof EClass) { return (T) StoreUtil.stringToEClass(dataStore.getPackageRegistry(), id); } - return (T) StoreUtil.stringToStructureFeature(id); + return (T) StoreUtil.stringToStructureFeature(getDataStore().getPackageRegistry(), id); } /** @@ -610,7 +612,6 @@ public class AuditHandler implements ExtensionPoint { EStructuralFeature auditingEFeature; if (eFeature instanceof EReference && StoreUtil.isMap(eFeature)) { - auditingEFeature = EcoreUtil.copy(eFeature); // create the audit emap class final EClass eMapEClass = ((EReference) eFeature).getEReferenceType(); @@ -626,26 +627,11 @@ public class AuditHandler implements ExtensionPoint { } // and use it - auditingEFeature.setEType(auditingEMapEClass); + auditingEFeature = createEMapFeature(eFeature, auditingEMapEClass); } else if (eFeature instanceof EReference && isEmbedded((EReference) eFeature)) { auditingEFeature = EcoreUtil.copy(eFeature); } else if (eFeature instanceof EReference) { - auditingEFeature = EcoreFactory.eINSTANCE.createEAttribute(); - auditingEFeature.setEType(XMLTypePackage.eINSTANCE.getString()); - for (EAnnotation eAnnotation : eFeature.getEAnnotations()) { - auditingEFeature.getEAnnotations().add(EcoreUtil.copy(eAnnotation)); - } - - // copy all values - for (EAttribute eSAttribute : EcorePackage.eINSTANCE.getEStructuralFeature() - .getEAllAttributes()) { - if (eSAttribute.isDerived() || eSAttribute.isVolatile()) { - continue; - } - if (eFeature.eIsSet(eSAttribute)) { - auditingEFeature.eSet(eSAttribute, eFeature.eGet(eSAttribute)); - } - } + auditingEFeature = createEReferenceAttribute((EReference) eFeature); } else { auditingEFeature = EcoreUtil.copy(eFeature); } @@ -686,6 +672,33 @@ public class AuditHandler implements ExtensionPoint { return eAuditingPackage; } + protected EAttribute createEReferenceAttribute(EReference eReference) { + final EAttribute auditingEAttribute = EcoreFactory.eINSTANCE.createEAttribute(); + auditingEAttribute.setEType(EcorePackage.eINSTANCE.getEString()); + for (EAnnotation eAnnotation : eReference.getEAnnotations()) { + auditingEAttribute.getEAnnotations().add(EcoreUtil.copy(eAnnotation)); + } + + // copy all values + for (EAttribute eSAttribute : EcorePackage.eINSTANCE.getEStructuralFeature() + .getEAllAttributes()) { + if (eSAttribute.isDerived() || eSAttribute.isVolatile()) { + continue; + } + if (eReference.eIsSet(eSAttribute)) { + auditingEAttribute.eSet(eSAttribute, eReference.eGet(eSAttribute)); + } + } + return auditingEAttribute; + } + + protected EStructuralFeature createEMapFeature(EStructuralFeature sourceEFeature, + EClass eMapEntryEClass) { + final EStructuralFeature auditingEFeature = EcoreUtil.copy(sourceEFeature); + auditingEFeature.setEType(eMapEntryEClass); + return auditingEFeature; + } + private EClass getSuperAuditingEClass(AuditDataStore auditDataStore, EClass superEClass, EPackage.Registry registry, PersistenceOptions po) { final EPackage superEPackage = superEClass.getEPackage(); diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/AuditProcessHandler.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/AuditProcessHandler.java index 7f8dad462..7f6069f20 100755 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/AuditProcessHandler.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/AuditProcessHandler.java @@ -67,6 +67,12 @@ public class AuditProcessHandler implements AfterTransactionCompletionProcess, private static ThreadLocal<String> currentUserName = new ThreadLocal<String>(); + private static ThreadLocal<String> currentComment = new ThreadLocal<String>(); + + public static void setCurrentComment(String user) { + currentComment.set(user); + } + public static void setCurrentUserName(String user) { currentUserName.set(user); } @@ -209,9 +215,21 @@ public class AuditProcessHandler implements AfterTransactionCompletionProcess, final TeneoAuditCommitInfo commitInfo = TeneoauditingFactory.eINSTANCE .createTeneoAuditCommitInfo(); + if (currentUserName.get() != null) { commitInfo.setUser(currentUserName.get()); } + + commitInfo.setCommitTime(commitTime); + + if (currentComment.get() != null) { + if (currentComment.get().length() > 2000) { + commitInfo.setComment(currentComment.get().substring(0, 2000)); + } else { + commitInfo.setComment(currentComment.get()); + } + } + toSaveEntries.add(commitInfo); EClass lastEClass = null; diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditCommitInfo.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditCommitInfo.java index 9af3b35e6..5d6fabc2f 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditCommitInfo.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditCommitInfo.java @@ -7,38 +7,31 @@ import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> A representation of the model object ' * <em><b>Teneo Audit Commit Info</b></em>'. <!-- end-user-doc --> - * + * * <p> * The following features are supported: * <ul> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getId - * <em>Id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getVersion - * <em>Version</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getUser - * <em>User</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getComment - * <em>Comment</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getVersion <em>Version</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getUser <em>User</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getComment <em>Comment</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getCommitTime <em>Commit Time</em>}</li> * </ul> * </p> - * + * * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditCommitInfo() * @model annotation="teneo.jpa value='@Entity'" * @generated */ public interface TeneoAuditCommitInfo extends EObject { /** - * Returns the value of the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> + * Returns the value of the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Id</em>' attribute isn't clear, there really should be more of a * description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Id</em>' attribute. * @see #setId(long) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditCommitInfo_Id() @@ -48,25 +41,22 @@ public interface TeneoAuditCommitInfo extends EObject { long getId(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getId - * <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Id</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getId <em>Id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Id</em>' attribute. * @see #getId() * @generated */ void setId(long value); /** - * Returns the value of the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> + * Returns the value of the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Version</em>' attribute isn't clear, there really should be more of * a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Version</em>' attribute. * @see #setVersion(long) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditCommitInfo_Version() @@ -76,25 +66,22 @@ public interface TeneoAuditCommitInfo extends EObject { long getVersion(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getVersion - * <em>Version</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Version</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getVersion <em>Version</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Version</em>' attribute. * @see #getVersion() * @generated */ void setVersion(long value); /** - * Returns the value of the '<em><b>User</b></em>' attribute. <!-- begin-user-doc --> + * Returns the value of the '<em><b>User</b></em>' attribute. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>User</em>' attribute isn't clear, there really should be more of a * description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>User</em>' attribute. * @see #setUser(String) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditCommitInfo_User() @@ -104,43 +91,63 @@ public interface TeneoAuditCommitInfo extends EObject { String getUser(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getUser - * <em>User</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>User</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getUser <em>User</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>User</em>' attribute. * @see #getUser() * @generated */ void setUser(String value); /** - * Returns the value of the '<em><b>Comment</b></em>' attribute. <!-- begin-user-doc --> + * Returns the value of the '<em><b>Comment</b></em>' attribute. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Comment</em>' attribute isn't clear, there really should be more of * a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Comment</em>' attribute. * @see #setComment(String) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditCommitInfo_Comment() - * @model annotation="teneo.jpa value='@Lob'" + * @model annotation="teneo.jpa value='@Column(length=2000)'" * @generated */ String getComment(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getComment - * <em>Comment</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Comment</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getComment <em>Comment</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Comment</em>' attribute. * @see #getComment() * @generated */ void setComment(String value); + /** + * Returns the value of the '<em><b>Commit Time</b></em>' attribute. + * <!-- begin-user-doc --> + * <p> + * If the meaning of the '<em>Commit Time</em>' attribute isn't clear, + * there really should be more of a description here... + * </p> + * <!-- end-user-doc --> + * @return the value of the '<em>Commit Time</em>' attribute. + * @see #setCommitTime(long) + * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditCommitInfo_CommitTime() + * @model + * @generated + */ + long getCommitTime(); + + /** + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getCommitTime <em>Commit Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @param value the new value of the '<em>Commit Time</em>' attribute. + * @see #getCommitTime() + * @generated + */ + void setCommitTime(long value); + } // TeneoAuditCommitInfo diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditEntry.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditEntry.java index 4c919e599..5f49d4d15 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditEntry.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditEntry.java @@ -7,63 +7,37 @@ import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> A representation of the model object '<em><b>Teneo Audit Entry</b></em>'. * <!-- end-user-doc --> - * + * * <p> * The following features are supported: * <ul> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_id - * <em>Teneo audit id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_version - * <em>Teneo version</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_object_id - * <em>Teneo object id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_owner_object_id - * <em>Teneo owner object id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_start - * <em>Teneo start</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_end - * <em>Teneo end</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_commit_info - * <em>Teneo commit info</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_kind - * <em>Teneo audit kind</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_id - * <em>Teneo container id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_feature_id - * <em>Teneo container feature id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_previous_start - * <em>Teneo previous start</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_id <em>Teneo audit id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_version <em>Teneo version</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_object_id <em>Teneo object id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_owner_object_id <em>Teneo owner object id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_start <em>Teneo start</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_end <em>Teneo end</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_commit_info <em>Teneo commit info</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_kind <em>Teneo audit kind</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_id <em>Teneo container id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_feature_id <em>Teneo container feature id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_previous_start <em>Teneo previous start</em>}</li> * </ul> * </p> - * + * * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditEntry() - * @model annotation="teneo.jpa value='@MappedSuperclass\n@Table(uniqueConstraints= - * {@UniqueConstraint(columnNames={\"teneo_object_id\", - * \"teneo_start\"}), - * @UniqueConstraint(columnNames={\ - * "teneo_object_id\", \"teneo_end\"}), @UniqueConstraint(columnNames={\"teneo_object_id\", \"teneo_previous_start\"})})'" + * @model annotation="teneo.jpa value='@MappedSuperclass\n@Table(uniqueConstraints={@UniqueConstraint(columnNames={\"teneo_object_id\", \"teneo_start\"}), @UniqueConstraint(columnNames={\"teneo_object_id\", \"teneo_end\"}), @UniqueConstraint(columnNames={\"teneo_object_id\", \"teneo_previous_start\"})})'" * @generated */ public interface TeneoAuditEntry extends EObject { /** - * Returns the value of the '<em><b>Teneo audit id</b></em>' attribute. <!-- begin-user-doc --> + * Returns the value of the '<em><b>Teneo audit id</b></em>' attribute. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Teneo audit id</em>' attribute isn't clear, there really should be * more of a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Teneo audit id</em>' attribute. * @see #setTeneo_audit_id(long) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditEntry_Teneo_audit_id() @@ -73,25 +47,22 @@ public interface TeneoAuditEntry extends EObject { long getTeneo_audit_id(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_id - * <em>Teneo audit id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo audit id</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_id <em>Teneo audit id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo audit id</em>' attribute. * @see #getTeneo_audit_id() * @generated */ void setTeneo_audit_id(long value); /** - * Returns the value of the '<em><b>Teneo version</b></em>' attribute. <!-- begin-user-doc --> + * Returns the value of the '<em><b>Teneo version</b></em>' attribute. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Teneo version</em>' attribute isn't clear, there really should be * more of a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Teneo version</em>' attribute. * @see #setTeneo_version(long) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditEntry_Teneo_version() @@ -101,25 +72,22 @@ public interface TeneoAuditEntry extends EObject { long getTeneo_version(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_version - * <em>Teneo version</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo version</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_version <em>Teneo version</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo version</em>' attribute. * @see #getTeneo_version() * @generated */ void setTeneo_version(long value); /** - * Returns the value of the '<em><b>Teneo object id</b></em>' attribute. <!-- begin-user-doc --> + * Returns the value of the '<em><b>Teneo object id</b></em>' attribute. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Teneo object id</em>' attribute isn't clear, there really should be * more of a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Teneo object id</em>' attribute. * @see #setTeneo_object_id(String) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditEntry_Teneo_object_id() @@ -129,26 +97,23 @@ public interface TeneoAuditEntry extends EObject { String getTeneo_object_id(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_object_id - * <em>Teneo object id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo object id</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_object_id <em>Teneo object id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo object id</em>' attribute. * @see #getTeneo_object_id() * @generated */ void setTeneo_object_id(String value); /** - * Returns the value of the '<em><b>Teneo owner object id</b></em>' attribute. <!-- begin-user-doc + * Returns the value of the '<em><b>Teneo owner object id</b></em>' attribute. + * <!-- begin-user-doc * --> * <p> * If the meaning of the '<em>Teneo owner object id</em>' attribute isn't clear, there really * should be more of a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Teneo owner object id</em>' attribute. * @see #setTeneo_owner_object_id(String) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditEntry_Teneo_owner_object_id() @@ -158,25 +123,22 @@ public interface TeneoAuditEntry extends EObject { String getTeneo_owner_object_id(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_owner_object_id - * <em>Teneo owner object id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo owner object id</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_owner_object_id <em>Teneo owner object id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo owner object id</em>' attribute. * @see #getTeneo_owner_object_id() * @generated */ void setTeneo_owner_object_id(String value); /** - * Returns the value of the '<em><b>Teneo start</b></em>' attribute. <!-- begin-user-doc --> + * Returns the value of the '<em><b>Teneo start</b></em>' attribute. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Teneo start</em>' attribute isn't clear, there really should be more * of a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Teneo start</em>' attribute. * @see #setTeneo_start(long) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditEntry_Teneo_start() @@ -186,26 +148,23 @@ public interface TeneoAuditEntry extends EObject { long getTeneo_start(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_start - * <em>Teneo start</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo start</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_start <em>Teneo start</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo start</em>' attribute. * @see #getTeneo_start() * @generated */ void setTeneo_start(long value); /** - * Returns the value of the '<em><b>Teneo end</b></em>' attribute. The default value is - * <code>"-1"</code>. <!-- begin-user-doc --> + * Returns the value of the '<em><b>Teneo end</b></em>' attribute. + * The default value is <code>"-1"</code>. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Teneo end</em>' attribute isn't clear, there really should be more * of a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Teneo end</em>' attribute. * @see #setTeneo_end(long) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditEntry_Teneo_end() @@ -215,25 +174,22 @@ public interface TeneoAuditEntry extends EObject { long getTeneo_end(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_end - * <em>Teneo end</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo end</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_end <em>Teneo end</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo end</em>' attribute. * @see #getTeneo_end() * @generated */ void setTeneo_end(long value); /** - * Returns the value of the '<em><b>Teneo commit info</b></em>' reference. <!-- begin-user-doc --> + * Returns the value of the '<em><b>Teneo commit info</b></em>' reference. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Teneo commit info</em>' reference isn't clear, there really should * be more of a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Teneo commit info</em>' reference. * @see #setTeneo_commit_info(TeneoAuditCommitInfo) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditEntry_Teneo_commit_info() @@ -243,12 +199,9 @@ public interface TeneoAuditEntry extends EObject { TeneoAuditCommitInfo getTeneo_commit_info(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_commit_info - * <em>Teneo commit info</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo commit info</em>' reference. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_commit_info <em>Teneo commit info</em>}' reference. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo commit info</em>' reference. * @see #getTeneo_commit_info() * @generated */ @@ -275,12 +228,9 @@ public interface TeneoAuditEntry extends EObject { TeneoAuditKind getTeneo_audit_kind(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_kind - * <em>Teneo audit kind</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo audit kind</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_kind <em>Teneo audit kind</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo audit kind</em>' attribute. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind * @see #getTeneo_audit_kind() * @generated @@ -288,14 +238,14 @@ public interface TeneoAuditEntry extends EObject { void setTeneo_audit_kind(TeneoAuditKind value); /** - * Returns the value of the '<em><b>Teneo container id</b></em>' attribute. <!-- begin-user-doc + * Returns the value of the '<em><b>Teneo container id</b></em>' attribute. + * <!-- begin-user-doc * --> * <p> * If the meaning of the '<em>Teneo container id</em>' attribute isn't clear, there really should * be more of a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Teneo container id</em>' attribute. * @see #setTeneo_container_id(String) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditEntry_Teneo_container_id() @@ -305,12 +255,9 @@ public interface TeneoAuditEntry extends EObject { String getTeneo_container_id(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_id - * <em>Teneo container id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo container id</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_id <em>Teneo container id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo container id</em>' attribute. * @see #getTeneo_container_id() * @generated */ @@ -334,26 +281,23 @@ public interface TeneoAuditEntry extends EObject { int getTeneo_container_feature_id(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_feature_id - * <em>Teneo container feature id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo container feature id</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_feature_id <em>Teneo container feature id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo container feature id</em>' attribute. * @see #getTeneo_container_feature_id() * @generated */ void setTeneo_container_feature_id(int value); /** - * Returns the value of the '<em><b>Teneo previous start</b></em>' attribute. The default value is - * <code>"-1"</code>. <!-- begin-user-doc --> + * Returns the value of the '<em><b>Teneo previous start</b></em>' attribute. + * The default value is <code>"-1"</code>. + * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Teneo previous start</em>' attribute isn't clear, there really * should be more of a description here... * </p> * <!-- end-user-doc --> - * * @return the value of the '<em>Teneo previous start</em>' attribute. * @see #setTeneo_previous_start(long) * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#getTeneoAuditEntry_Teneo_previous_start() @@ -363,12 +307,9 @@ public interface TeneoAuditEntry extends EObject { long getTeneo_previous_start(); /** - * Sets the value of the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_previous_start - * <em>Teneo previous start</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param value - * the new value of the '<em>Teneo previous start</em>' attribute. + * Sets the value of the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_previous_start <em>Teneo previous start</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param value the new value of the '<em>Teneo previous start</em>' attribute. * @see #getTeneo_previous_start() * @generated */ diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditKind.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditKind.java index 320eee65d..07e3314a8 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditKind.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoAuditKind.java @@ -19,8 +19,8 @@ import org.eclipse.emf.common.util.Enumerator; */ public enum TeneoAuditKind implements Enumerator { /** - * The '<em><b>ADD</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The '<em><b>ADD</b></em>' literal object. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #ADD_VALUE * @generated * @ordered @@ -28,8 +28,8 @@ public enum TeneoAuditKind implements Enumerator { ADD(0, "ADD", "ADD"), /** - * The '<em><b>UPDATE</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The '<em><b>UPDATE</b></em>' literal object. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #UPDATE_VALUE * @generated * @ordered @@ -37,8 +37,8 @@ public enum TeneoAuditKind implements Enumerator { UPDATE(1, "UPDATE", "UPDATE"), /** - * The '<em><b>DELETE</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The '<em><b>DELETE</b></em>' literal object. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #DELETE_VALUE * @generated * @ordered @@ -46,13 +46,13 @@ public enum TeneoAuditKind implements Enumerator { DELETE(2, "DELETE", "DELETE"); /** - * The '<em><b>ADD</b></em>' literal value. <!-- begin-user-doc --> + * The '<em><b>ADD</b></em>' literal value. + * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>ADD</b></em>' literal object isn't clear, there really should be more * of a description here... * </p> * <!-- end-user-doc --> - * * @see #ADD * @model * @generated @@ -61,13 +61,13 @@ public enum TeneoAuditKind implements Enumerator { public static final int ADD_VALUE = 0; /** - * The '<em><b>UPDATE</b></em>' literal value. <!-- begin-user-doc --> + * The '<em><b>UPDATE</b></em>' literal value. + * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>UPDATE</b></em>' literal object isn't clear, there really should be * more of a description here... * </p> * <!-- end-user-doc --> - * * @see #UPDATE * @model * @generated @@ -76,13 +76,13 @@ public enum TeneoAuditKind implements Enumerator { public static final int UPDATE_VALUE = 1; /** - * The '<em><b>DELETE</b></em>' literal value. <!-- begin-user-doc --> + * The '<em><b>DELETE</b></em>' literal value. + * <!-- begin-user-doc --> * <p> * If the meaning of '<em><b>DELETE</b></em>' literal object isn't clear, there really should be * more of a description here... * </p> * <!-- end-user-doc --> - * * @see #DELETE * @model * @generated @@ -91,12 +91,16 @@ public enum TeneoAuditKind implements Enumerator { public static final int DELETE_VALUE = 2; /** - * An array of all the '<em><b>Teneo Audit Kind</b></em>' enumerators. <!-- begin-user-doc --> + * An array of all the '<em><b>Teneo Audit Kind</b></em>' enumerators. + * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ - private static final TeneoAuditKind[] VALUES_ARRAY = new TeneoAuditKind[] { ADD, UPDATE, DELETE, }; + private static final TeneoAuditKind[] VALUES_ARRAY = new TeneoAuditKind[] { + ADD, + UPDATE, + DELETE, + }; /** * A public read-only list of all the '<em><b>Teneo Audit Kind</b></em>' enumerators. <!-- @@ -104,8 +108,7 @@ public enum TeneoAuditKind implements Enumerator { * * @generated */ - public static final List<TeneoAuditKind> VALUES = Collections.unmodifiableList(Arrays - .asList(VALUES_ARRAY)); + public static final List<TeneoAuditKind> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); /** * Returns the '<em><b>Teneo Audit Kind</b></em>' literal with the specified literal value. <!-- @@ -147,40 +150,34 @@ public enum TeneoAuditKind implements Enumerator { */ public static TeneoAuditKind get(int value) { switch (value) { - case ADD_VALUE: - return ADD; - case UPDATE_VALUE: - return UPDATE; - case DELETE_VALUE: - return DELETE; + case ADD_VALUE: return ADD; + case UPDATE_VALUE: return UPDATE; + case DELETE_VALUE: return DELETE; } return null; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ private final int value; /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ private final String name; /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ private final String literal; /** - * Only this class can construct instances. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Only this class can construct instances. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ private TeneoAuditKind(int value, String name, String literal) { @@ -191,29 +188,26 @@ public enum TeneoAuditKind implements Enumerator { /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public int getValue() { - return value; + return value; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public String getName() { - return name; + return name; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public String getLiteral() { - return literal; + return literal; } /** diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoauditingFactory.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoauditingFactory.java index 1e69e4802..7f935befb 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoauditingFactory.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoauditingFactory.java @@ -7,40 +7,38 @@ import org.eclipse.emf.ecore.EFactory; /** * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each * non-abstract class of the model. <!-- end-user-doc --> - * * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage * @generated */ public interface TeneoauditingFactory extends EFactory { /** - * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The singleton instance of the factory. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ - TeneoauditingFactory eINSTANCE = org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoauditingFactoryImpl - .init(); + TeneoauditingFactory eINSTANCE = org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoauditingFactoryImpl.init(); /** - * Returns a new object of class '<em>Teneo Audit Entry</em>'. <!-- begin-user-doc --> <!-- + * Returns a new object of class '<em>Teneo Audit Entry</em>'. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @return a new object of class '<em>Teneo Audit Entry</em>'. * @generated */ TeneoAuditEntry createTeneoAuditEntry(); /** - * Returns a new object of class '<em>Teneo Audit Commit Info</em>'. <!-- begin-user-doc --> <!-- + * Returns a new object of class '<em>Teneo Audit Commit Info</em>'. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @return a new object of class '<em>Teneo Audit Commit Info</em>'. * @generated */ TeneoAuditCommitInfo createTeneoAuditCommitInfo(); /** - * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the package supported by this factory. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoauditingPackage.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoauditingPackage.java index b4dc10dd9..a023199b2 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoauditingPackage.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/TeneoauditingPackage.java @@ -18,46 +18,42 @@ import org.eclipse.emf.ecore.EReference; * <li>and each data type</li> * </ul> * <!-- end-user-doc --> - * * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingFactory * @model kind="package" * @generated */ public interface TeneoauditingPackage extends EPackage { /** - * The package name. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The package name. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ String eNAME = "teneoauditing"; /** - * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The package namespace URI. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ String eNS_URI = "http://www.eclipse.org/emf/teneo/hibernate/auditing"; /** - * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The package namespace name. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ String eNS_PREFIX = "teneoauditing"; /** - * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The singleton instance of the package. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ - TeneoauditingPackage eINSTANCE = org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoauditingPackageImpl - .init(); + TeneoauditingPackage eINSTANCE = org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoauditingPackageImpl.init(); /** - * The meta object id for the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl - * <em>Teneo Audit Entry</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl <em>Teneo Audit Entry</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoauditingPackageImpl#getTeneoAuditEntry() * @generated @@ -65,81 +61,81 @@ public interface TeneoauditingPackage extends EPackage { int TENEO_AUDIT_ENTRY = 0; /** - * The feature id for the '<em><b>Teneo audit id</b></em>' attribute. <!-- begin-user-doc --> <!-- + * The feature id for the '<em><b>Teneo audit id</b></em>' attribute. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID = 0; /** - * The feature id for the '<em><b>Teneo version</b></em>' attribute. <!-- begin-user-doc --> <!-- + * The feature id for the '<em><b>Teneo version</b></em>' attribute. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_ENTRY__TENEO_VERSION = 1; /** - * The feature id for the '<em><b>Teneo object id</b></em>' attribute. <!-- begin-user-doc --> + * The feature id for the '<em><b>Teneo object id</b></em>' attribute. + * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID = 2; /** - * The feature id for the '<em><b>Teneo owner object id</b></em>' attribute. <!-- begin-user-doc + * The feature id for the '<em><b>Teneo owner object id</b></em>' attribute. + * <!-- begin-user-doc * --> <!-- end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID = 3; /** - * The feature id for the '<em><b>Teneo start</b></em>' attribute. <!-- begin-user-doc --> <!-- + * The feature id for the '<em><b>Teneo start</b></em>' attribute. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_ENTRY__TENEO_START = 4; /** - * The feature id for the '<em><b>Teneo end</b></em>' attribute. <!-- begin-user-doc --> <!-- + * The feature id for the '<em><b>Teneo end</b></em>' attribute. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_ENTRY__TENEO_END = 5; /** - * The feature id for the '<em><b>Teneo commit info</b></em>' reference. <!-- begin-user-doc --> + * The feature id for the '<em><b>Teneo commit info</b></em>' reference. + * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO = 6; /** - * The feature id for the '<em><b>Teneo audit kind</b></em>' attribute. <!-- begin-user-doc --> + * The feature id for the '<em><b>Teneo audit kind</b></em>' attribute. + * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND = 7; /** - * The feature id for the '<em><b>Teneo container id</b></em>' attribute. <!-- begin-user-doc --> + * The feature id for the '<em><b>Teneo container id</b></em>' attribute. + * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated * @ordered */ @@ -155,9 +151,9 @@ public interface TeneoauditingPackage extends EPackage { int TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID = 9; /** - * The feature id for the '<em><b>Teneo previous start</b></em>' attribute. <!-- begin-user-doc + * The feature id for the '<em><b>Teneo previous start</b></em>' attribute. + * <!-- begin-user-doc * --> <!-- end-user-doc --> - * * @generated * @ordered */ @@ -173,10 +169,8 @@ public interface TeneoauditingPackage extends EPackage { int TENEO_AUDIT_ENTRY_FEATURE_COUNT = 11; /** - * The meta object id for the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl - * <em>Teneo Audit Commit Info</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl <em>Teneo Audit Commit Info</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoauditingPackageImpl#getTeneoAuditCommitInfo() * @generated @@ -184,55 +178,62 @@ public interface TeneoauditingPackage extends EPackage { int TENEO_AUDIT_COMMIT_INFO = 1; /** - * The feature id for the '<em><b>Id</b></em>' attribute. <!-- begin-user-doc --> <!-- + * The feature id for the '<em><b>Id</b></em>' attribute. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_COMMIT_INFO__ID = 0; /** - * The feature id for the '<em><b>Version</b></em>' attribute. <!-- begin-user-doc --> <!-- + * The feature id for the '<em><b>Version</b></em>' attribute. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_COMMIT_INFO__VERSION = 1; /** - * The feature id for the '<em><b>User</b></em>' attribute. <!-- begin-user-doc --> <!-- + * The feature id for the '<em><b>User</b></em>' attribute. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_COMMIT_INFO__USER = 2; /** - * The feature id for the '<em><b>Comment</b></em>' attribute. <!-- begin-user-doc --> <!-- + * The feature id for the '<em><b>Comment</b></em>' attribute. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @generated * @ordered */ int TENEO_AUDIT_COMMIT_INFO__COMMENT = 3; /** + * The feature id for the '<em><b>Commit Time</b></em>' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + * @ordered + */ + int TENEO_AUDIT_COMMIT_INFO__COMMIT_TIME = 4; + + /** * The number of structural features of the '<em>Teneo Audit Commit Info</em>' class. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated * @ordered */ - int TENEO_AUDIT_COMMIT_INFO_FEATURE_COUNT = 4; + int TENEO_AUDIT_COMMIT_INFO_FEATURE_COUNT = 5; /** - * The meta object id for the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind - * <em>Teneo Audit Kind</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The meta object id for the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind <em>Teneo Audit Kind</em>}' enum. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoauditingPackageImpl#getTeneoAuditKind() * @generated @@ -240,10 +241,8 @@ public interface TeneoauditingPackage extends EPackage { int TENEO_AUDIT_KIND = 2; /** - * Returns the meta object for class ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry - * <em>Teneo Audit Entry</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry <em>Teneo Audit Entry</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for class '<em>Teneo Audit Entry</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry * @generated @@ -251,10 +250,8 @@ public interface TeneoauditingPackage extends EPackage { EClass getTeneoAuditEntry(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_id - * <em>Teneo audit id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_id <em>Teneo audit id</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Teneo audit id</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_id() * @see #getTeneoAuditEntry() @@ -263,10 +260,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditEntry_Teneo_audit_id(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_version - * <em>Teneo version</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_version <em>Teneo version</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Teneo version</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_version() * @see #getTeneoAuditEntry() @@ -275,10 +270,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditEntry_Teneo_version(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_object_id - * <em>Teneo object id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_object_id <em>Teneo object id</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Teneo object id</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_object_id() * @see #getTeneoAuditEntry() @@ -287,10 +280,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditEntry_Teneo_object_id(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_owner_object_id - * <em>Teneo owner object id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_owner_object_id <em>Teneo owner object id</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Teneo owner object id</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_owner_object_id() * @see #getTeneoAuditEntry() @@ -299,10 +290,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditEntry_Teneo_owner_object_id(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_start - * <em>Teneo start</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_start <em>Teneo start</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Teneo start</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_start() * @see #getTeneoAuditEntry() @@ -311,10 +300,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditEntry_Teneo_start(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_end - * <em>Teneo end</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_end <em>Teneo end</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Teneo end</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_end() * @see #getTeneoAuditEntry() @@ -323,10 +310,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditEntry_Teneo_end(); /** - * Returns the meta object for the reference ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_commit_info - * <em>Teneo commit info</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the reference '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_commit_info <em>Teneo commit info</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the reference '<em>Teneo commit info</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_commit_info() * @see #getTeneoAuditEntry() @@ -335,10 +320,8 @@ public interface TeneoauditingPackage extends EPackage { EReference getTeneoAuditEntry_Teneo_commit_info(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_kind - * <em>Teneo audit kind</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_kind <em>Teneo audit kind</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Teneo audit kind</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_audit_kind() * @see #getTeneoAuditEntry() @@ -347,10 +330,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditEntry_Teneo_audit_kind(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_id - * <em>Teneo container id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_id <em>Teneo container id</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Teneo container id</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_id() * @see #getTeneoAuditEntry() @@ -359,10 +340,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditEntry_Teneo_container_id(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_feature_id - * <em>Teneo container feature id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_feature_id <em>Teneo container feature id</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Teneo container feature id</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_container_feature_id() * @see #getTeneoAuditEntry() @@ -371,10 +350,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditEntry_Teneo_container_feature_id(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_previous_start - * <em>Teneo previous start</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_previous_start <em>Teneo previous start</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Teneo previous start</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry#getTeneo_previous_start() * @see #getTeneoAuditEntry() @@ -383,10 +360,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditEntry_Teneo_previous_start(); /** - * Returns the meta object for class ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo - * <em>Teneo Audit Commit Info</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for class '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo <em>Teneo Audit Commit Info</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for class '<em>Teneo Audit Commit Info</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo * @generated @@ -394,10 +369,8 @@ public interface TeneoauditingPackage extends EPackage { EClass getTeneoAuditCommitInfo(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getId - * <em>Id</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getId <em>Id</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Id</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getId() * @see #getTeneoAuditCommitInfo() @@ -406,10 +379,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditCommitInfo_Id(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getVersion - * <em>Version</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getVersion <em>Version</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Version</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getVersion() * @see #getTeneoAuditCommitInfo() @@ -418,10 +389,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditCommitInfo_Version(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getUser - * <em>User</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getUser <em>User</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>User</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getUser() * @see #getTeneoAuditCommitInfo() @@ -430,10 +399,8 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditCommitInfo_User(); /** - * Returns the meta object for the attribute ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getComment - * <em>Comment</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getComment <em>Comment</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for the attribute '<em>Comment</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getComment() * @see #getTeneoAuditCommitInfo() @@ -442,10 +409,19 @@ public interface TeneoauditingPackage extends EPackage { EAttribute getTeneoAuditCommitInfo_Comment(); /** - * Returns the meta object for enum ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind - * <em>Teneo Audit Kind</em>}'. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Returns the meta object for the attribute '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getCommitTime <em>Commit Time</em>}'. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @return the meta object for the attribute '<em>Commit Time</em>'. + * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo#getCommitTime() + * @see #getTeneoAuditCommitInfo() + * @generated + */ + EAttribute getTeneoAuditCommitInfo_CommitTime(); + + /** + * Returns the meta object for enum '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind <em>Teneo Audit Kind</em>}'. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the meta object for enum '<em>Teneo Audit Kind</em>'. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind * @generated @@ -453,9 +429,9 @@ public interface TeneoauditingPackage extends EPackage { EEnum getTeneoAuditKind(); /** - * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- + * Returns the factory that creates the instances of the model. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @return the factory that creates the instances of the model. * @generated */ @@ -470,15 +446,12 @@ public interface TeneoauditingPackage extends EPackage { * <li>and each data type</li> * </ul> * <!-- end-user-doc --> - * * @generated */ interface Literals { /** - * The meta object literal for the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl - * <em>Teneo Audit Entry</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl <em>Teneo Audit Entry</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoauditingPackageImpl#getTeneoAuditEntry() * @generated @@ -512,11 +485,9 @@ public interface TeneoauditingPackage extends EPackage { /** * The meta object literal for the '<em><b>Teneo owner object id</b></em>' attribute feature. * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ - EAttribute TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID = eINSTANCE - .getTeneoAuditEntry_Teneo_owner_object_id(); + EAttribute TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID = eINSTANCE.getTeneoAuditEntry_Teneo_owner_object_id(); /** * The meta object literal for the '<em><b>Teneo start</b></em>' attribute feature. <!-- @@ -540,8 +511,7 @@ public interface TeneoauditingPackage extends EPackage { * * @generated */ - EReference TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO = eINSTANCE - .getTeneoAuditEntry_Teneo_commit_info(); + EReference TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO = eINSTANCE.getTeneoAuditEntry_Teneo_commit_info(); /** * The meta object literal for the '<em><b>Teneo audit kind</b></em>' attribute feature. <!-- @@ -549,8 +519,7 @@ public interface TeneoauditingPackage extends EPackage { * * @generated */ - EAttribute TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND = eINSTANCE - .getTeneoAuditEntry_Teneo_audit_kind(); + EAttribute TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND = eINSTANCE.getTeneoAuditEntry_Teneo_audit_kind(); /** * The meta object literal for the '<em><b>Teneo container id</b></em>' attribute feature. <!-- @@ -558,32 +527,25 @@ public interface TeneoauditingPackage extends EPackage { * * @generated */ - EAttribute TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID = eINSTANCE - .getTeneoAuditEntry_Teneo_container_id(); + EAttribute TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID = eINSTANCE.getTeneoAuditEntry_Teneo_container_id(); /** - * The meta object literal for the '<em><b>Teneo container feature id</b></em>' attribute - * feature. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The meta object literal for the '<em><b>Teneo container feature id</b></em>' attribute feature. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ - EAttribute TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID = eINSTANCE - .getTeneoAuditEntry_Teneo_container_feature_id(); + EAttribute TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID = eINSTANCE.getTeneoAuditEntry_Teneo_container_feature_id(); /** * The meta object literal for the '<em><b>Teneo previous start</b></em>' attribute feature. * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ - EAttribute TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START = eINSTANCE - .getTeneoAuditEntry_Teneo_previous_start(); + EAttribute TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START = eINSTANCE.getTeneoAuditEntry_Teneo_previous_start(); /** - * The meta object literal for the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl - * <em>Teneo Audit Commit Info</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl <em>Teneo Audit Commit Info</em>}' class. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoauditingPackageImpl#getTeneoAuditCommitInfo() * @generated @@ -591,9 +553,9 @@ public interface TeneoauditingPackage extends EPackage { EClass TENEO_AUDIT_COMMIT_INFO = eINSTANCE.getTeneoAuditCommitInfo(); /** - * The meta object literal for the '<em><b>Id</b></em>' attribute feature. <!-- begin-user-doc + * The meta object literal for the '<em><b>Id</b></em>' attribute feature. + * <!-- begin-user-doc * --> <!-- end-user-doc --> - * * @generated */ EAttribute TENEO_AUDIT_COMMIT_INFO__ID = eINSTANCE.getTeneoAuditCommitInfo_Id(); @@ -607,9 +569,9 @@ public interface TeneoauditingPackage extends EPackage { EAttribute TENEO_AUDIT_COMMIT_INFO__VERSION = eINSTANCE.getTeneoAuditCommitInfo_Version(); /** - * The meta object literal for the '<em><b>User</b></em>' attribute feature. <!-- begin-user-doc + * The meta object literal for the '<em><b>User</b></em>' attribute feature. + * <!-- begin-user-doc * --> <!-- end-user-doc --> - * * @generated */ EAttribute TENEO_AUDIT_COMMIT_INFO__USER = eINSTANCE.getTeneoAuditCommitInfo_User(); @@ -623,10 +585,16 @@ public interface TeneoauditingPackage extends EPackage { EAttribute TENEO_AUDIT_COMMIT_INFO__COMMENT = eINSTANCE.getTeneoAuditCommitInfo_Comment(); /** - * The meta object literal for the ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind - * <em>Teneo Audit Kind</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The meta object literal for the '<em><b>Commit Time</b></em>' attribute feature. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + EAttribute TENEO_AUDIT_COMMIT_INFO__COMMIT_TIME = eINSTANCE.getTeneoAuditCommitInfo_CommitTime(); + + /** + * The meta object literal for the '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind <em>Teneo Audit Kind</em>}' enum. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoauditingPackageImpl#getTeneoAuditKind() * @generated diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoAuditCommitInfoImpl.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoAuditCommitInfoImpl.java index 8a18b4218..c0021c8ae 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoAuditCommitInfoImpl.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoAuditCommitInfoImpl.java @@ -15,28 +15,21 @@ import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.Teneoauditin * <p> * The following features are implemented: * <ul> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl#getId - * <em>Id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl#getVersion - * <em>Version</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl#getUser - * <em>User</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl#getComment - * <em>Comment</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl#getVersion <em>Version</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl#getUser <em>User</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl#getComment <em>Comment</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl#getCommitTime <em>Commit Time</em>}</li> * </ul> * </p> - * + * * @generated */ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditCommitInfo { /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- + * The default value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @see #getId() * @generated * @ordered @@ -44,9 +37,9 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC protected static final long ID_EDEFAULT = 0L; /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. <!-- begin-user-doc --> <!-- + * The cached value of the '{@link #getId() <em>Id</em>}' attribute. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @see #getId() * @generated * @ordered @@ -64,9 +57,9 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC protected static final long VERSION_EDEFAULT = 0L; /** - * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. <!-- begin-user-doc + * The cached value of the '{@link #getVersion() <em>Version</em>}' attribute. + * <!-- begin-user-doc * --> <!-- end-user-doc --> - * * @see #getVersion() * @generated * @ordered @@ -74,9 +67,9 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC protected long version = VERSION_EDEFAULT; /** - * The default value of the '{@link #getUser() <em>User</em>}' attribute. <!-- begin-user-doc --> + * The default value of the '{@link #getUser() <em>User</em>}' attribute. + * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getUser() * @generated * @ordered @@ -84,9 +77,9 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC protected static final String USER_EDEFAULT = null; /** - * The cached value of the '{@link #getUser() <em>User</em>}' attribute. <!-- begin-user-doc --> + * The cached value of the '{@link #getUser() <em>User</em>}' attribute. + * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @see #getUser() * @generated * @ordered @@ -104,9 +97,9 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC protected static final String COMMENT_EDEFAULT = null; /** - * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute. <!-- begin-user-doc + * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute. + * <!-- begin-user-doc * --> <!-- end-user-doc --> - * * @see #getComment() * @generated * @ordered @@ -114,8 +107,27 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC protected String comment = COMMENT_EDEFAULT; /** + * The default value of the '{@link #getCommitTime() <em>Commit Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCommitTime() + * @generated + * @ordered + */ + protected static final long COMMIT_TIME_EDEFAULT = 0L; + + /** + * The cached value of the '{@link #getCommitTime() <em>Commit Time</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getCommitTime() + * @generated + * @ordered + */ + protected long commitTime = COMMIT_TIME_EDEFAULT; + + /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ protected TeneoAuditCommitInfoImpl() { @@ -124,7 +136,6 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override @@ -134,7 +145,6 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public long getId() { @@ -143,20 +153,17 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setId(long newId) { long oldId = id; id = newId; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__ID, oldId, id)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__ID, oldId, id)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public long getVersion() { @@ -165,20 +172,17 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setVersion(long newVersion) { long oldVersion = version; version = newVersion; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__VERSION, oldVersion, version)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__VERSION, oldVersion, version)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public String getUser() { @@ -187,20 +191,17 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setUser(String newUser) { String oldUser = user; user = newUser; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__USER, oldUser, user)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__USER, oldUser, user)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public String getComment() { @@ -209,114 +210,137 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setComment(String newComment) { String oldComment = comment; comment = newComment; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMENT, oldComment, comment)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMENT, oldComment, comment)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public long getCommitTime() { + return commitTime; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setCommitTime(long newCommitTime) { + long oldCommitTime = commitTime; + commitTime = newCommitTime; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMIT_TIME, oldCommitTime, commitTime)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__ID: - return getId(); - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__VERSION: - return getVersion(); - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__USER: - return getUser(); - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMENT: - return getComment(); + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__ID: + return getId(); + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__VERSION: + return getVersion(); + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__USER: + return getUser(); + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMENT: + return getComment(); + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMIT_TIME: + return getCommitTime(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__ID: - setId((Long) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__VERSION: - setVersion((Long) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__USER: - setUser((String) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMENT: - setComment((String) newValue); - return; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__ID: + setId((Long)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__VERSION: + setVersion((Long)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__USER: + setUser((String)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMENT: + setComment((String)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMIT_TIME: + setCommitTime((Long)newValue); + return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__ID: - setId(ID_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__VERSION: - setVersion(VERSION_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__USER: - setUser(USER_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMENT: - setComment(COMMENT_EDEFAULT); - return; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__ID: + setId(ID_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__VERSION: + setVersion(VERSION_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__USER: + setUser(USER_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMENT: + setComment(COMMENT_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMIT_TIME: + setCommitTime(COMMIT_TIME_EDEFAULT); + return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__ID: - return id != ID_EDEFAULT; - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__VERSION: - return version != VERSION_EDEFAULT; - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__USER: - return USER_EDEFAULT == null ? user != null : !USER_EDEFAULT.equals(user); - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMENT: - return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment); + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__ID: + return id != ID_EDEFAULT; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__VERSION: + return version != VERSION_EDEFAULT; + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__USER: + return USER_EDEFAULT == null ? user != null : !USER_EDEFAULT.equals(user); + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMENT: + return COMMENT_EDEFAULT == null ? comment != null : !COMMENT_EDEFAULT.equals(comment); + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO__COMMIT_TIME: + return commitTime != COMMIT_TIME_EDEFAULT; } return super.eIsSet(featureID); } /** * <!-- 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(" (id: "); @@ -327,6 +351,8 @@ public class TeneoAuditCommitInfoImpl extends EObjectImpl implements TeneoAuditC result.append(user); result.append(", comment: "); result.append(comment); + result.append(", commitTime: "); + result.append(commitTime); result.append(')'); return result.toString(); } diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoAuditEntryImpl.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoAuditEntryImpl.java index b49e7d83e..5cc85fb1b 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoAuditEntryImpl.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoAuditEntryImpl.java @@ -18,42 +18,20 @@ import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.Teneoauditin * <p> * The following features are implemented: * <ul> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_audit_id - * <em>Teneo audit id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_version - * <em>Teneo version</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_object_id - * <em>Teneo object id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_owner_object_id - * <em>Teneo owner object id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_start - * <em>Teneo start</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_end - * <em>Teneo end</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_commit_info - * <em>Teneo commit info</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_audit_kind - * <em>Teneo audit kind</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_container_id - * <em>Teneo container id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_container_feature_id - * <em>Teneo container feature id</em>}</li> - * <li> - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_previous_start - * <em>Teneo previous start</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_audit_id <em>Teneo audit id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_version <em>Teneo version</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_object_id <em>Teneo object id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_owner_object_id <em>Teneo owner object id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_start <em>Teneo start</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_end <em>Teneo end</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_commit_info <em>Teneo commit info</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_audit_kind <em>Teneo audit kind</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_container_id <em>Teneo container id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_container_feature_id <em>Teneo container feature id</em>}</li> + * <li>{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl#getTeneo_previous_start <em>Teneo previous start</em>}</li> * </ul> * </p> - * + * * @generated */ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry { @@ -100,7 +78,6 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * The default value of the '{@link #getTeneo_object_id() <em>Teneo object id</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @see #getTeneo_object_id() * @generated * @ordered @@ -110,7 +87,6 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * The cached value of the '{@link #getTeneo_object_id() <em>Teneo object id</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @see #getTeneo_object_id() * @generated * @ordered @@ -118,9 +94,8 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry protected String teneo_object_id = TENEO_OBJECT_ID_EDEFAULT; /** - * The default value of the '{@link #getTeneo_owner_object_id() <em>Teneo owner object id</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The default value of the '{@link #getTeneo_owner_object_id() <em>Teneo owner object id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #getTeneo_owner_object_id() * @generated * @ordered @@ -128,9 +103,8 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry protected static final String TENEO_OWNER_OBJECT_ID_EDEFAULT = null; /** - * The cached value of the '{@link #getTeneo_owner_object_id() <em>Teneo owner object id</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The cached value of the '{@link #getTeneo_owner_object_id() <em>Teneo owner object id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #getTeneo_owner_object_id() * @generated * @ordered @@ -180,7 +154,6 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * The cached value of the '{@link #getTeneo_commit_info() <em>Teneo commit info</em>}' reference. * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @see #getTeneo_commit_info() * @generated * @ordered @@ -190,7 +163,6 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * The default value of the '{@link #getTeneo_audit_kind() <em>Teneo audit kind</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @see #getTeneo_audit_kind() * @generated * @ordered @@ -200,7 +172,6 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * The cached value of the '{@link #getTeneo_audit_kind() <em>Teneo audit kind</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @see #getTeneo_audit_kind() * @generated * @ordered @@ -208,9 +179,8 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry protected TeneoAuditKind teneo_audit_kind = TENEO_AUDIT_KIND_EDEFAULT; /** - * The default value of the '{@link #getTeneo_container_id() <em>Teneo container id</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The default value of the '{@link #getTeneo_container_id() <em>Teneo container id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #getTeneo_container_id() * @generated * @ordered @@ -218,9 +188,8 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry protected static final String TENEO_CONTAINER_ID_EDEFAULT = null; /** - * The cached value of the '{@link #getTeneo_container_id() <em>Teneo container id</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The cached value of the '{@link #getTeneo_container_id() <em>Teneo container id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #getTeneo_container_id() * @generated * @ordered @@ -228,9 +197,8 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry protected String teneo_container_id = TENEO_CONTAINER_ID_EDEFAULT; /** - * The default value of the '{@link #getTeneo_container_feature_id() - * <em>Teneo container feature id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The default value of the '{@link #getTeneo_container_feature_id() <em>Teneo container feature id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #getTeneo_container_feature_id() * @generated * @ordered @@ -238,9 +206,8 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry protected static final int TENEO_CONTAINER_FEATURE_ID_EDEFAULT = 0; /** - * The cached value of the '{@link #getTeneo_container_feature_id() - * <em>Teneo container feature id</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The cached value of the '{@link #getTeneo_container_feature_id() <em>Teneo container feature id</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #getTeneo_container_feature_id() * @generated * @ordered @@ -248,9 +215,8 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry protected int teneo_container_feature_id = TENEO_CONTAINER_FEATURE_ID_EDEFAULT; /** - * The default value of the '{@link #getTeneo_previous_start() <em>Teneo previous start</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The default value of the '{@link #getTeneo_previous_start() <em>Teneo previous start</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #getTeneo_previous_start() * @generated * @ordered @@ -258,9 +224,8 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry protected static final long TENEO_PREVIOUS_START_EDEFAULT = -1L; /** - * The cached value of the '{@link #getTeneo_previous_start() <em>Teneo previous start</em>}' - * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The cached value of the '{@link #getTeneo_previous_start() <em>Teneo previous start</em>}' attribute. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #getTeneo_previous_start() * @generated * @ordered @@ -269,7 +234,6 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ protected TeneoAuditEntryImpl() { @@ -278,7 +242,6 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override @@ -288,7 +251,6 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public long getTeneo_audit_id() { @@ -297,20 +259,17 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_audit_id(long newTeneo_audit_id) { long oldTeneo_audit_id = teneo_audit_id; teneo_audit_id = newTeneo_audit_id; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID, oldTeneo_audit_id, teneo_audit_id)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID, oldTeneo_audit_id, teneo_audit_id)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public long getTeneo_version() { @@ -319,20 +278,17 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_version(long newTeneo_version) { long oldTeneo_version = teneo_version; teneo_version = newTeneo_version; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_VERSION, oldTeneo_version, teneo_version)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_VERSION, oldTeneo_version, teneo_version)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public String getTeneo_object_id() { @@ -341,21 +297,17 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_object_id(String newTeneo_object_id) { String oldTeneo_object_id = teneo_object_id; teneo_object_id = newTeneo_object_id; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID, oldTeneo_object_id, - teneo_object_id)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID, oldTeneo_object_id, teneo_object_id)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public String getTeneo_owner_object_id() { @@ -364,21 +316,17 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_owner_object_id(String newTeneo_owner_object_id) { String oldTeneo_owner_object_id = teneo_owner_object_id; teneo_owner_object_id = newTeneo_owner_object_id; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID, oldTeneo_owner_object_id, - teneo_owner_object_id)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID, oldTeneo_owner_object_id, teneo_owner_object_id)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public long getTeneo_start() { @@ -387,20 +335,17 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_start(long newTeneo_start) { long oldTeneo_start = teneo_start; teneo_start = newTeneo_start; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_START, oldTeneo_start, teneo_start)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_START, oldTeneo_start, teneo_start)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public long getTeneo_end() { @@ -409,31 +354,26 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_end(long newTeneo_end) { long oldTeneo_end = teneo_end; teneo_end = newTeneo_end; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_END, oldTeneo_end, teneo_end)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_END, oldTeneo_end, teneo_end)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public TeneoAuditCommitInfo getTeneo_commit_info() { if (teneo_commit_info != null && teneo_commit_info.eIsProxy()) { - InternalEObject oldTeneo_commit_info = (InternalEObject) teneo_commit_info; - teneo_commit_info = (TeneoAuditCommitInfo) eResolveProxy(oldTeneo_commit_info); + InternalEObject oldTeneo_commit_info = (InternalEObject)teneo_commit_info; + teneo_commit_info = (TeneoAuditCommitInfo)eResolveProxy(oldTeneo_commit_info); if (teneo_commit_info != oldTeneo_commit_info) { if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO, oldTeneo_commit_info, - teneo_commit_info)); + eNotify(new ENotificationImpl(this, Notification.RESOLVE, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO, oldTeneo_commit_info, teneo_commit_info)); } } return teneo_commit_info; @@ -441,7 +381,6 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public TeneoAuditCommitInfo basicGetTeneo_commit_info() { @@ -450,21 +389,17 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_commit_info(TeneoAuditCommitInfo newTeneo_commit_info) { TeneoAuditCommitInfo oldTeneo_commit_info = teneo_commit_info; teneo_commit_info = newTeneo_commit_info; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO, oldTeneo_commit_info, - teneo_commit_info)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO, oldTeneo_commit_info, teneo_commit_info)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public TeneoAuditKind getTeneo_audit_kind() { @@ -473,22 +408,17 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_audit_kind(TeneoAuditKind newTeneo_audit_kind) { TeneoAuditKind oldTeneo_audit_kind = teneo_audit_kind; - teneo_audit_kind = newTeneo_audit_kind == null ? TENEO_AUDIT_KIND_EDEFAULT - : newTeneo_audit_kind; + teneo_audit_kind = newTeneo_audit_kind == null ? TENEO_AUDIT_KIND_EDEFAULT : newTeneo_audit_kind; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND, oldTeneo_audit_kind, - teneo_audit_kind)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND, oldTeneo_audit_kind, teneo_audit_kind)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public String getTeneo_container_id() { @@ -497,21 +427,17 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_container_id(String newTeneo_container_id) { String oldTeneo_container_id = teneo_container_id; teneo_container_id = newTeneo_container_id; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID, oldTeneo_container_id, - teneo_container_id)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID, oldTeneo_container_id, teneo_container_id)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public int getTeneo_container_feature_id() { @@ -520,21 +446,17 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_container_feature_id(int newTeneo_container_feature_id) { int oldTeneo_container_feature_id = teneo_container_feature_id; teneo_container_feature_id = newTeneo_container_feature_id; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID, - oldTeneo_container_feature_id, teneo_container_feature_id)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID, oldTeneo_container_feature_id, teneo_container_feature_id)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public long getTeneo_previous_start() { @@ -543,190 +465,177 @@ public class TeneoAuditEntryImpl extends EObjectImpl implements TeneoAuditEntry /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public void setTeneo_previous_start(long newTeneo_previous_start) { long oldTeneo_previous_start = teneo_previous_start; teneo_previous_start = newTeneo_previous_start; if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, - TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START, oldTeneo_previous_start, - teneo_previous_start)); + eNotify(new ENotificationImpl(this, Notification.SET, TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START, oldTeneo_previous_start, teneo_previous_start)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID: - return getTeneo_audit_id(); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_VERSION: - return getTeneo_version(); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID: - return getTeneo_object_id(); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID: - return getTeneo_owner_object_id(); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_START: - return getTeneo_start(); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_END: - return getTeneo_end(); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO: - if (resolve) - return getTeneo_commit_info(); - return basicGetTeneo_commit_info(); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND: - return getTeneo_audit_kind(); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID: - return getTeneo_container_id(); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID: - return getTeneo_container_feature_id(); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START: - return getTeneo_previous_start(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID: + return getTeneo_audit_id(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_VERSION: + return getTeneo_version(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID: + return getTeneo_object_id(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID: + return getTeneo_owner_object_id(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_START: + return getTeneo_start(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_END: + return getTeneo_end(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO: + if (resolve) return getTeneo_commit_info(); + return basicGetTeneo_commit_info(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND: + return getTeneo_audit_kind(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID: + return getTeneo_container_id(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID: + return getTeneo_container_feature_id(); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START: + return getTeneo_previous_start(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID: - setTeneo_audit_id((Long) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_VERSION: - setTeneo_version((Long) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID: - setTeneo_object_id((String) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID: - setTeneo_owner_object_id((String) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_START: - setTeneo_start((Long) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_END: - setTeneo_end((Long) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO: - setTeneo_commit_info((TeneoAuditCommitInfo) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND: - setTeneo_audit_kind((TeneoAuditKind) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID: - setTeneo_container_id((String) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID: - setTeneo_container_feature_id((Integer) newValue); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START: - setTeneo_previous_start((Long) newValue); - return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID: + setTeneo_audit_id((Long)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_VERSION: + setTeneo_version((Long)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID: + setTeneo_object_id((String)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID: + setTeneo_owner_object_id((String)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_START: + setTeneo_start((Long)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_END: + setTeneo_end((Long)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO: + setTeneo_commit_info((TeneoAuditCommitInfo)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND: + setTeneo_audit_kind((TeneoAuditKind)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID: + setTeneo_container_id((String)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID: + setTeneo_container_feature_id((Integer)newValue); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START: + setTeneo_previous_start((Long)newValue); + return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID: - setTeneo_audit_id(TENEO_AUDIT_ID_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_VERSION: - setTeneo_version(TENEO_VERSION_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID: - setTeneo_object_id(TENEO_OBJECT_ID_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID: - setTeneo_owner_object_id(TENEO_OWNER_OBJECT_ID_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_START: - setTeneo_start(TENEO_START_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_END: - setTeneo_end(TENEO_END_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO: - setTeneo_commit_info((TeneoAuditCommitInfo) null); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND: - setTeneo_audit_kind(TENEO_AUDIT_KIND_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID: - setTeneo_container_id(TENEO_CONTAINER_ID_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID: - setTeneo_container_feature_id(TENEO_CONTAINER_FEATURE_ID_EDEFAULT); - return; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START: - setTeneo_previous_start(TENEO_PREVIOUS_START_EDEFAULT); - return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID: + setTeneo_audit_id(TENEO_AUDIT_ID_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_VERSION: + setTeneo_version(TENEO_VERSION_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID: + setTeneo_object_id(TENEO_OBJECT_ID_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID: + setTeneo_owner_object_id(TENEO_OWNER_OBJECT_ID_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_START: + setTeneo_start(TENEO_START_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_END: + setTeneo_end(TENEO_END_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO: + setTeneo_commit_info((TeneoAuditCommitInfo)null); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND: + setTeneo_audit_kind(TENEO_AUDIT_KIND_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID: + setTeneo_container_id(TENEO_CONTAINER_ID_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID: + setTeneo_container_feature_id(TENEO_CONTAINER_FEATURE_ID_EDEFAULT); + return; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START: + setTeneo_previous_start(TENEO_PREVIOUS_START_EDEFAULT); + return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID: - return teneo_audit_id != TENEO_AUDIT_ID_EDEFAULT; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_VERSION: - return teneo_version != TENEO_VERSION_EDEFAULT; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID: - return TENEO_OBJECT_ID_EDEFAULT == null ? teneo_object_id != null : !TENEO_OBJECT_ID_EDEFAULT - .equals(teneo_object_id); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID: - return TENEO_OWNER_OBJECT_ID_EDEFAULT == null ? teneo_owner_object_id != null - : !TENEO_OWNER_OBJECT_ID_EDEFAULT.equals(teneo_owner_object_id); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_START: - return teneo_start != TENEO_START_EDEFAULT; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_END: - return teneo_end != TENEO_END_EDEFAULT; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO: - return teneo_commit_info != null; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND: - return teneo_audit_kind != TENEO_AUDIT_KIND_EDEFAULT; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID: - return TENEO_CONTAINER_ID_EDEFAULT == null ? teneo_container_id != null - : !TENEO_CONTAINER_ID_EDEFAULT.equals(teneo_container_id); - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID: - return teneo_container_feature_id != TENEO_CONTAINER_FEATURE_ID_EDEFAULT; - case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START: - return teneo_previous_start != TENEO_PREVIOUS_START_EDEFAULT; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_ID: + return teneo_audit_id != TENEO_AUDIT_ID_EDEFAULT; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_VERSION: + return teneo_version != TENEO_VERSION_EDEFAULT; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OBJECT_ID: + return TENEO_OBJECT_ID_EDEFAULT == null ? teneo_object_id != null : !TENEO_OBJECT_ID_EDEFAULT.equals(teneo_object_id); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_OWNER_OBJECT_ID: + return TENEO_OWNER_OBJECT_ID_EDEFAULT == null ? teneo_owner_object_id != null : !TENEO_OWNER_OBJECT_ID_EDEFAULT.equals(teneo_owner_object_id); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_START: + return teneo_start != TENEO_START_EDEFAULT; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_END: + return teneo_end != TENEO_END_EDEFAULT; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_COMMIT_INFO: + return teneo_commit_info != null; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_AUDIT_KIND: + return teneo_audit_kind != TENEO_AUDIT_KIND_EDEFAULT; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_ID: + return TENEO_CONTAINER_ID_EDEFAULT == null ? teneo_container_id != null : !TENEO_CONTAINER_ID_EDEFAULT.equals(teneo_container_id); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_CONTAINER_FEATURE_ID: + return teneo_container_feature_id != TENEO_CONTAINER_FEATURE_ID_EDEFAULT; + case TeneoauditingPackage.TENEO_AUDIT_ENTRY__TENEO_PREVIOUS_START: + return teneo_previous_start != TENEO_PREVIOUS_START_EDEFAULT; } return super.eIsSet(featureID); } /** * <!-- 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(" (teneo_audit_id: "); diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoauditingFactoryImpl.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoauditingFactoryImpl.java index ec0bebac5..70dae50c3 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoauditingFactoryImpl.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoauditingFactoryImpl.java @@ -8,6 +8,7 @@ import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EFactoryImpl; import org.eclipse.emf.ecore.plugin.EcorePlugin; +import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.*; import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo; import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry; import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditKind; @@ -16,31 +17,30 @@ import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.Teneoauditin /** * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc --> - * * @generated */ public class TeneoauditingFactoryImpl extends EFactoryImpl implements TeneoauditingFactory { /** - * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Creates the default factory implementation. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public static TeneoauditingFactory init() { try { - TeneoauditingFactory theTeneoauditingFactory = (TeneoauditingFactory) EPackage.Registry.INSTANCE - .getEFactory("http://www.eclipse.org/emf/teneo/hibernate/auditing"); + TeneoauditingFactory theTeneoauditingFactory = (TeneoauditingFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/emf/teneo/hibernate/auditing"); if (theTeneoauditingFactory != null) { return theTeneoauditingFactory; } - } catch (Exception exception) { + } + catch (Exception exception) { EcorePlugin.INSTANCE.log(exception); } return new TeneoauditingFactoryImpl(); } /** - * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Creates an instance of the factory. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public TeneoauditingFactoryImpl() { @@ -49,57 +49,48 @@ public class TeneoauditingFactoryImpl extends EFactoryImpl implements Teneoaudit /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public EObject create(EClass eClass) { switch (eClass.getClassifierID()) { - case TeneoauditingPackage.TENEO_AUDIT_ENTRY: - return createTeneoAuditEntry(); - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO: - return createTeneoAuditCommitInfo(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() - + "' is not a valid classifier"); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY: return createTeneoAuditEntry(); + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO: return createTeneoAuditCommitInfo(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public Object createFromString(EDataType eDataType, String initialValue) { switch (eDataType.getClassifierID()) { - case TeneoauditingPackage.TENEO_AUDIT_KIND: - return createTeneoAuditKindFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() - + "' is not a valid classifier"); + case TeneoauditingPackage.TENEO_AUDIT_KIND: + return createTeneoAuditKindFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ @Override public String convertToString(EDataType eDataType, Object instanceValue) { switch (eDataType.getClassifierID()) { - case TeneoauditingPackage.TENEO_AUDIT_KIND: - return convertTeneoAuditKindToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() - + "' is not a valid classifier"); + case TeneoauditingPackage.TENEO_AUDIT_KIND: + return convertTeneoAuditKindToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); } } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public TeneoAuditEntry createTeneoAuditEntry() { @@ -109,7 +100,6 @@ public class TeneoauditingFactoryImpl extends EFactoryImpl implements Teneoaudit /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public TeneoAuditCommitInfo createTeneoAuditCommitInfo() { @@ -119,20 +109,16 @@ public class TeneoauditingFactoryImpl extends EFactoryImpl implements Teneoaudit /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public TeneoAuditKind createTeneoAuditKindFromString(EDataType eDataType, String initialValue) { TeneoAuditKind result = TeneoAuditKind.get(initialValue); - if (result == null) - throw new IllegalArgumentException("The value '" + initialValue - + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public String convertTeneoAuditKindToString(EDataType eDataType, Object instanceValue) { @@ -141,16 +127,14 @@ public class TeneoauditingFactoryImpl extends EFactoryImpl implements Teneoaudit /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public TeneoauditingPackage getTeneoauditingPackage() { - return (TeneoauditingPackage) getEPackage(); + return (TeneoauditingPackage)getEPackage(); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @deprecated * @generated */ diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoauditingPackageImpl.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoauditingPackageImpl.java index 48e3b3a25..97bb24ecd 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoauditingPackageImpl.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/impl/TeneoauditingPackageImpl.java @@ -16,40 +16,36 @@ import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.Teneoauditin /** * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc --> - * * @generated */ public class TeneoauditingPackageImpl extends EPackageImpl implements TeneoauditingPackage { /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ private EClass teneoAuditEntryEClass = null; /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ private EClass teneoAuditCommitInfoEClass = null; /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ private EEnum teneoAuditKindEEnum = null; /** * Creates an instance of the model <b>Package</b>, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package package URI - * value. - * <p> - * Note: the correct way to create the package is via the static factory method {@link #init - * init()}, which also performs initialization of the package, or returns the registered package, - * if one already exists. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + * <p>Note: the correct way to create the package is via the static + * factory method {@link #init init()}, which also performs + * initialization of the package, or returns the registered package, + * if one already exists. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @see org.eclipse.emf.ecore.EPackage.Registry * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage#eNS_URI * @see #init() @@ -61,34 +57,26 @@ public class TeneoauditingPackageImpl extends EPackageImpl implements Teneoaudit /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ private static boolean isInited = false; /** - * 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 TeneoauditingPackage#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 --> + * 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 TeneoauditingPackage#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 * @see #createPackageContents() * @see #initializePackageContents() * @generated */ public static TeneoauditingPackage init() { - if (isInited) - return (TeneoauditingPackage) EPackage.Registry.INSTANCE - .getEPackage(TeneoauditingPackage.eNS_URI); + if (isInited) return (TeneoauditingPackage)EPackage.Registry.INSTANCE.getEPackage(TeneoauditingPackage.eNS_URI); // Obtain or create and register package - TeneoauditingPackageImpl theTeneoauditingPackage = (TeneoauditingPackageImpl) (EPackage.Registry.INSTANCE - .get(eNS_URI) instanceof TeneoauditingPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) - : new TeneoauditingPackageImpl()); + TeneoauditingPackageImpl theTeneoauditingPackage = (TeneoauditingPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof TeneoauditingPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new TeneoauditingPackageImpl()); isInited = true; @@ -101,6 +89,7 @@ public class TeneoauditingPackageImpl extends EPackageImpl implements Teneoaudit // Mark meta-data to indicate it can't be changed theTeneoauditingPackage.freeze(); + // Update the registry and return the package EPackage.Registry.INSTANCE.put(TeneoauditingPackage.eNS_URI, theTeneoauditingPackage); return theTeneoauditingPackage; @@ -108,7 +97,6 @@ public class TeneoauditingPackageImpl extends EPackageImpl implements Teneoaudit /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EClass getTeneoAuditEntry() { @@ -117,106 +105,94 @@ public class TeneoauditingPackageImpl extends EPackageImpl implements Teneoaudit /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditEntry_Teneo_audit_id() { - return (EAttribute) teneoAuditEntryEClass.getEStructuralFeatures().get(0); + return (EAttribute)teneoAuditEntryEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditEntry_Teneo_version() { - return (EAttribute) teneoAuditEntryEClass.getEStructuralFeatures().get(1); + return (EAttribute)teneoAuditEntryEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditEntry_Teneo_object_id() { - return (EAttribute) teneoAuditEntryEClass.getEStructuralFeatures().get(2); + return (EAttribute)teneoAuditEntryEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditEntry_Teneo_owner_object_id() { - return (EAttribute) teneoAuditEntryEClass.getEStructuralFeatures().get(3); + return (EAttribute)teneoAuditEntryEClass.getEStructuralFeatures().get(3); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditEntry_Teneo_start() { - return (EAttribute) teneoAuditEntryEClass.getEStructuralFeatures().get(4); + return (EAttribute)teneoAuditEntryEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditEntry_Teneo_end() { - return (EAttribute) teneoAuditEntryEClass.getEStructuralFeatures().get(5); + return (EAttribute)teneoAuditEntryEClass.getEStructuralFeatures().get(5); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EReference getTeneoAuditEntry_Teneo_commit_info() { - return (EReference) teneoAuditEntryEClass.getEStructuralFeatures().get(6); + return (EReference)teneoAuditEntryEClass.getEStructuralFeatures().get(6); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditEntry_Teneo_audit_kind() { - return (EAttribute) teneoAuditEntryEClass.getEStructuralFeatures().get(7); + return (EAttribute)teneoAuditEntryEClass.getEStructuralFeatures().get(7); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditEntry_Teneo_container_id() { - return (EAttribute) teneoAuditEntryEClass.getEStructuralFeatures().get(8); + return (EAttribute)teneoAuditEntryEClass.getEStructuralFeatures().get(8); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditEntry_Teneo_container_feature_id() { - return (EAttribute) teneoAuditEntryEClass.getEStructuralFeatures().get(9); + return (EAttribute)teneoAuditEntryEClass.getEStructuralFeatures().get(9); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditEntry_Teneo_previous_start() { - return (EAttribute) teneoAuditEntryEClass.getEStructuralFeatures().get(10); + return (EAttribute)teneoAuditEntryEClass.getEStructuralFeatures().get(10); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EClass getTeneoAuditCommitInfo() { @@ -225,43 +201,47 @@ public class TeneoauditingPackageImpl extends EPackageImpl implements Teneoaudit /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditCommitInfo_Id() { - return (EAttribute) teneoAuditCommitInfoEClass.getEStructuralFeatures().get(0); + return (EAttribute)teneoAuditCommitInfoEClass.getEStructuralFeatures().get(0); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditCommitInfo_Version() { - return (EAttribute) teneoAuditCommitInfoEClass.getEStructuralFeatures().get(1); + return (EAttribute)teneoAuditCommitInfoEClass.getEStructuralFeatures().get(1); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditCommitInfo_User() { - return (EAttribute) teneoAuditCommitInfoEClass.getEStructuralFeatures().get(2); + return (EAttribute)teneoAuditCommitInfoEClass.getEStructuralFeatures().get(2); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EAttribute getTeneoAuditCommitInfo_Comment() { - return (EAttribute) teneoAuditCommitInfoEClass.getEStructuralFeatures().get(3); + return (EAttribute)teneoAuditCommitInfoEClass.getEStructuralFeatures().get(3); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public EAttribute getTeneoAuditCommitInfo_CommitTime() { + return (EAttribute)teneoAuditCommitInfoEClass.getEStructuralFeatures().get(4); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public EEnum getTeneoAuditKind() { @@ -270,29 +250,26 @@ public class TeneoauditingPackageImpl extends EPackageImpl implements Teneoaudit /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ public TeneoauditingFactory getTeneoauditingFactory() { - return (TeneoauditingFactory) getEFactoryInstance(); + return (TeneoauditingFactory)getEFactoryInstance(); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ private boolean isCreated = false; /** - * Creates the meta-model objects for the package. This method is guarded to have no affect on any - * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void createPackageContents() { - if (isCreated) - return; + if (isCreated) return; isCreated = true; // Create classes and their features @@ -314,6 +291,7 @@ public class TeneoauditingPackageImpl extends EPackageImpl implements Teneoaudit createEAttribute(teneoAuditCommitInfoEClass, TENEO_AUDIT_COMMIT_INFO__VERSION); createEAttribute(teneoAuditCommitInfoEClass, TENEO_AUDIT_COMMIT_INFO__USER); createEAttribute(teneoAuditCommitInfoEClass, TENEO_AUDIT_COMMIT_INFO__COMMENT); + createEAttribute(teneoAuditCommitInfoEClass, TENEO_AUDIT_COMMIT_INFO__COMMIT_TIME); // Create enums teneoAuditKindEEnum = createEEnum(TENEO_AUDIT_KIND); @@ -321,20 +299,18 @@ public class TeneoauditingPackageImpl extends EPackageImpl implements Teneoaudit /** * <!-- begin-user-doc --> <!-- end-user-doc --> - * * @generated */ private boolean isInitialized = false; /** - * Complete the initialization of the package and its meta-model. This method is guarded to have - * no affect on any invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void initializePackageContents() { - if (isInitialized) - return; + if (isInitialized) return; isInitialized = true; // Initialize package @@ -349,57 +325,25 @@ public class TeneoauditingPackageImpl extends EPackageImpl implements Teneoaudit // Add supertypes to classes // Initialize classes and features; add operations and parameters - initEClass(teneoAuditEntryEClass, TeneoAuditEntry.class, "TeneoAuditEntry", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTeneoAuditEntry_Teneo_audit_id(), ecorePackage.getELong(), "teneo_audit_id", - null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditEntry_Teneo_version(), ecorePackage.getELong(), "teneo_version", - null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditEntry_Teneo_object_id(), ecorePackage.getEString(), - "teneo_object_id", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditEntry_Teneo_owner_object_id(), ecorePackage.getEString(), - "teneo_owner_object_id", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditEntry_Teneo_start(), ecorePackage.getELong(), "teneo_start", null, - 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditEntry_Teneo_end(), ecorePackage.getELong(), "teneo_end", "-1", 0, - 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTeneoAuditEntry_Teneo_commit_info(), this.getTeneoAuditCommitInfo(), null, - "teneo_commit_info", null, 1, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getTeneoAuditEntry_Teneo_audit_kind(), this.getTeneoAuditKind(), - "teneo_audit_kind", null, 1, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditEntry_Teneo_container_id(), ecorePackage.getEString(), - "teneo_container_id", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditEntry_Teneo_container_feature_id(), ecorePackage.getEInt(), - "teneo_container_feature_id", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditEntry_Teneo_previous_start(), ecorePackage.getELong(), - "teneo_previous_start", "-1", 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(teneoAuditCommitInfoEClass, TeneoAuditCommitInfo.class, "TeneoAuditCommitInfo", - !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTeneoAuditCommitInfo_Id(), ecorePackage.getELong(), "id", null, 0, 1, - TeneoAuditCommitInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditCommitInfo_Version(), ecorePackage.getELong(), "version", null, 0, - 1, TeneoAuditCommitInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditCommitInfo_User(), ecorePackage.getEString(), "user", null, 0, 1, - TeneoAuditCommitInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, - !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTeneoAuditCommitInfo_Comment(), ecorePackage.getEString(), "comment", null, - 0, 1, TeneoAuditCommitInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEClass(teneoAuditEntryEClass, TeneoAuditEntry.class, "TeneoAuditEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTeneoAuditEntry_Teneo_audit_id(), ecorePackage.getELong(), "teneo_audit_id", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditEntry_Teneo_version(), ecorePackage.getELong(), "teneo_version", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditEntry_Teneo_object_id(), ecorePackage.getEString(), "teneo_object_id", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditEntry_Teneo_owner_object_id(), ecorePackage.getEString(), "teneo_owner_object_id", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditEntry_Teneo_start(), ecorePackage.getELong(), "teneo_start", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditEntry_Teneo_end(), ecorePackage.getELong(), "teneo_end", "-1", 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getTeneoAuditEntry_Teneo_commit_info(), this.getTeneoAuditCommitInfo(), null, "teneo_commit_info", null, 1, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditEntry_Teneo_audit_kind(), this.getTeneoAuditKind(), "teneo_audit_kind", null, 1, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditEntry_Teneo_container_id(), ecorePackage.getEString(), "teneo_container_id", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditEntry_Teneo_container_feature_id(), ecorePackage.getEInt(), "teneo_container_feature_id", null, 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditEntry_Teneo_previous_start(), ecorePackage.getELong(), "teneo_previous_start", "-1", 0, 1, TeneoAuditEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(teneoAuditCommitInfoEClass, TeneoAuditCommitInfo.class, "TeneoAuditCommitInfo", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTeneoAuditCommitInfo_Id(), ecorePackage.getELong(), "id", null, 0, 1, TeneoAuditCommitInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditCommitInfo_Version(), ecorePackage.getELong(), "version", null, 0, 1, TeneoAuditCommitInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditCommitInfo_User(), ecorePackage.getEString(), "user", null, 0, 1, TeneoAuditCommitInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditCommitInfo_Comment(), ecorePackage.getEString(), "comment", null, 0, 1, TeneoAuditCommitInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTeneoAuditCommitInfo_CommitTime(), ecorePackage.getELong(), "commitTime", null, 0, 1, TeneoAuditCommitInfo.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Initialize enums and add enum literals initEEnum(teneoAuditKindEEnum, TeneoAuditKind.class, "TeneoAuditKind"); @@ -416,28 +360,60 @@ public class TeneoauditingPackageImpl extends EPackageImpl implements Teneoaudit } /** - * Initializes the annotations for <b>teneo.jpa</b>. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Initializes the annotations for <b>teneo.jpa</b>. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ protected void createTeneoAnnotations() { - String source = "teneo.jpa"; - addAnnotation( - teneoAuditEntryEClass, - source, - new String[] { - "value", - "@MappedSuperclass\n@Table(uniqueConstraints={@UniqueConstraint(columnNames={\"teneo_object_id\", \"teneo_start\"}), @UniqueConstraint(columnNames={\"teneo_object_id\", \"teneo_end\"}), @UniqueConstraint(columnNames={\"teneo_object_id\", \"teneo_previous_start\"})})" }); - addAnnotation(getTeneoAuditEntry_Teneo_audit_id(), source, new String[] { "value", - "@Id\n@GeneratedValue" }); - addAnnotation(getTeneoAuditEntry_Teneo_version(), source, new String[] { "value", "@Version" }); - addAnnotation(getTeneoAuditEntry_Teneo_owner_object_id(), source, new String[] { "value", - "@Column(index=\"teneo_derived_object\")" }); - addAnnotation(teneoAuditCommitInfoEClass, source, new String[] { "value", "@Entity" }); - addAnnotation(getTeneoAuditCommitInfo_Id(), source, new String[] { "value", - "@Id\n@GeneratedValue" }); - addAnnotation(getTeneoAuditCommitInfo_Version(), source, new String[] { "value", "@Version" }); - addAnnotation(getTeneoAuditCommitInfo_Comment(), source, new String[] { "value", "@Lob" }); + String source = "teneo.jpa"; + addAnnotation + (teneoAuditEntryEClass, + source, + new String[] { + "value", "@MappedSuperclass\n@Table(uniqueConstraints={@UniqueConstraint(columnNames={\"teneo_object_id\", \"teneo_start\"}), @UniqueConstraint(columnNames={\"teneo_object_id\", \"teneo_end\"}), @UniqueConstraint(columnNames={\"teneo_object_id\", \"teneo_previous_start\"})})" + }); + addAnnotation + (getTeneoAuditEntry_Teneo_audit_id(), + source, + new String[] { + "value", "@Id\n@GeneratedValue" + }); + addAnnotation + (getTeneoAuditEntry_Teneo_version(), + source, + new String[] { + "value", "@Version" + }); + addAnnotation + (getTeneoAuditEntry_Teneo_owner_object_id(), + source, + new String[] { + "value", "@Column(index=\"teneo_derived_object\")" + }); + addAnnotation + (teneoAuditCommitInfoEClass, + source, + new String[] { + "value", "@Entity" + }); + addAnnotation + (getTeneoAuditCommitInfo_Id(), + source, + new String[] { + "value", "@Id\n@GeneratedValue" + }); + addAnnotation + (getTeneoAuditCommitInfo_Version(), + source, + new String[] { + "value", "@Version" + }); + addAnnotation + (getTeneoAuditCommitInfo_Comment(), + source, + new String[] { + "value", "@Column(length=2000)" + }); } } // TeneoauditingPackageImpl diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/util/TeneoauditingAdapterFactory.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/util/TeneoauditingAdapterFactory.java index f11f336cf..89dc42c06 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/util/TeneoauditingAdapterFactory.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/util/TeneoauditingAdapterFactory.java @@ -6,6 +6,7 @@ import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notifier; import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.*; import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo; import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry; import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage; @@ -13,21 +14,20 @@ import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.Teneoauditin /** * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter * <code>createXXX</code> method for each class of the model. <!-- end-user-doc --> - * * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage * @generated */ public class TeneoauditingAdapterFactory extends AdapterFactoryImpl { /** - * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The cached model package. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ protected static TeneoauditingPackage modelPackage; /** - * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Creates an instance of the adapter factory. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public TeneoauditingAdapterFactory() { @@ -37,10 +37,10 @@ public class TeneoauditingAdapterFactory extends AdapterFactoryImpl { } /** - * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc --> + * Returns whether this factory is applicable for the type of the object. + * <!-- begin-user-doc --> * This implementation returns <code>true</code> if the object is either the model's package or is * an instance object of the model. <!-- end-user-doc --> - * * @return whether this factory is applicable for the type of the object. * @generated */ @@ -50,54 +50,49 @@ public class TeneoauditingAdapterFactory extends AdapterFactoryImpl { return true; } if (object instanceof EObject) { - return ((EObject) object).eClass().getEPackage() == modelPackage; + return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; } /** - * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!-- + * The switch that delegates to the <code>createXXX</code> methods. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @generated */ protected TeneoauditingSwitch<Adapter> modelSwitch = new TeneoauditingSwitch<Adapter>() { - @Override - public Adapter caseTeneoAuditEntry(TeneoAuditEntry object) { - return createTeneoAuditEntryAdapter(); - } - - @Override - public Adapter caseTeneoAuditCommitInfo(TeneoAuditCommitInfo object) { - return createTeneoAuditCommitInfoAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) { - return createEObjectAdapter(); - } - }; + @Override + public Adapter caseTeneoAuditEntry(TeneoAuditEntry object) { + return createTeneoAuditEntryAdapter(); + } + @Override + public Adapter caseTeneoAuditCommitInfo(TeneoAuditCommitInfo object) { + return createTeneoAuditCommitInfoAdapter(); + } + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; /** - * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc --> - * - * @param target - * the object to adapt. + * Creates an adapter for the <code>target</code>. + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @param target the object to adapt. * @return the adapter for the <code>target</code>. * @generated */ @Override public Adapter createAdapter(Notifier target) { - return modelSwitch.doSwitch((EObject) target); + return modelSwitch.doSwitch((EObject)target); } /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry - * <em>Teneo Audit Entry</em>}'. <!-- begin-user-doc --> This default implementation returns null + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry <em>Teneo Audit Entry</em>}'. + * <!-- begin-user-doc --> This default implementation returns null * so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch * all the cases anyway. <!-- end-user-doc --> - * * @return the new adapter. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry * @generated @@ -107,12 +102,10 @@ public class TeneoauditingAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for an object of class ' - * {@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo - * <em>Teneo Audit Commit Info</em>}'. <!-- begin-user-doc --> This default implementation returns + * Creates a new adapter for an object of class '{@link org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo <em>Teneo Audit Commit Info</em>}'. + * <!-- begin-user-doc --> This default implementation returns * null so that we can easily ignore cases; it's useful to ignore a case when inheritance will * catch all the cases anyway. <!-- end-user-doc --> - * * @return the new adapter. * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo * @generated @@ -122,9 +115,9 @@ public class TeneoauditingAdapterFactory extends AdapterFactoryImpl { } /** - * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation + * Creates a new adapter for the default case. + * <!-- begin-user-doc --> This default implementation * returns null. <!-- end-user-doc --> - * * @return the new adapter. * @generated */ diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/util/TeneoauditingSwitch.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/util/TeneoauditingSwitch.java index 486b24fc0..b9dd11181 100644 --- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/util/TeneoauditingSwitch.java +++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/auditing/model/teneoauditing/util/TeneoauditingSwitch.java @@ -5,6 +5,7 @@ package org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.util; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.util.Switch; +import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.*; import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditCommitInfo; import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoAuditEntry; import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage; @@ -15,21 +16,20 @@ import org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.Teneoauditin * each class of the model, starting with the actual class of the object and proceeding up the * inheritance hierarchy until a non-null result is returned, which is the result of the switch. * <!-- end-user-doc --> - * * @see org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.TeneoauditingPackage * @generated */ public class TeneoauditingSwitch<T> extends Switch<T> { /** - * The cached model package <!-- begin-user-doc --> <!-- end-user-doc --> - * + * The cached model package + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ protected static TeneoauditingPackage modelPackage; /** - * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Creates an instance of the switch. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public TeneoauditingSwitch() { @@ -39,9 +39,9 @@ public class TeneoauditingSwitch<T> extends Switch<T> { } /** - * Checks whether this is a switch for the given package. <!-- begin-user-doc --> <!-- + * Checks whether this is a switch for the given package. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * * @parameter ePackage the package in question. * @return whether this is a switch for the given package. * @generated @@ -52,31 +52,27 @@ public class TeneoauditingSwitch<T> extends Switch<T> { } /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it - * yields that result. <!-- begin-user-doc --> <!-- end-user-doc --> - * + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. + * <!-- begin-user-doc --> <!-- end-user-doc --> * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ @Override protected T doSwitch(int classifierID, EObject theEObject) { switch (classifierID) { - case TeneoauditingPackage.TENEO_AUDIT_ENTRY: { - TeneoAuditEntry teneoAuditEntry = (TeneoAuditEntry) theEObject; - T result = caseTeneoAuditEntry(teneoAuditEntry); - if (result == null) - result = defaultCase(theEObject); - return result; - } - case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO: { - TeneoAuditCommitInfo teneoAuditCommitInfo = (TeneoAuditCommitInfo) theEObject; - T result = caseTeneoAuditCommitInfo(teneoAuditCommitInfo); - if (result == null) - result = defaultCase(theEObject); - return result; - } - default: - return defaultCase(theEObject); + case TeneoauditingPackage.TENEO_AUDIT_ENTRY: { + TeneoAuditEntry teneoAuditEntry = (TeneoAuditEntry)theEObject; + T result = caseTeneoAuditEntry(teneoAuditEntry); + if (result == null) result = defaultCase(theEObject); + return result; + } + case TeneoauditingPackage.TENEO_AUDIT_COMMIT_INFO: { + TeneoAuditCommitInfo teneoAuditCommitInfo = (TeneoAuditCommitInfo)theEObject; + T result = caseTeneoAuditCommitInfo(teneoAuditCommitInfo); + if (result == null) result = defaultCase(theEObject); + return result; + } + default: return defaultCase(theEObject); } } @@ -84,9 +80,7 @@ public class TeneoauditingSwitch<T> extends Switch<T> { * Returns the result of interpreting the object as an instance of '<em>Teneo Audit Entry</em>'. * <!-- begin-user-doc --> This implementation returns null; returning a non-null result will * terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. + * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Teneo Audit Entry</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -96,14 +90,11 @@ public class TeneoauditingSwitch<T> extends Switch<T> { } /** - * Returns the result of interpreting the object as an instance of ' - * <em>Teneo Audit Commit Info</em>'. <!-- begin-user-doc --> This implementation returns null; + * Returns the result of interpreting the object as an instance of '<em>Teneo Audit Commit Info</em>'. + * <!-- begin-user-doc --> This implementation returns null; * returning a non-null result will terminate the switch. <!-- end-user-doc --> - * - * @param object - * the target of the switch. - * @return the result of interpreting the object as an instance of ' - * <em>Teneo Audit Commit Info</em>'. + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of '<em>Teneo Audit Commit Info</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ |