Home » Modeling » EMF » [CDO] CDO Hibernate - inconsistencies in test cases
[CDO] CDO Hibernate - inconsistencies in test cases [message #686732] |
Fri, 13 May 2011 08:45 |
Goetz Botterweck Messages: 71 Registered: July 2009 |
Member |
|
|
I noted two consistency in CDO Hibernate example test cases, which cause
test cases to fail.
1) org.eclipse.emf.cdo.examples.hibernate.client should list EMF Change
as a dependency
2) Apparently, there was a change in the metamodel in
org.eclipse.emf.cdo.examples.company. The metaclass Address was renamed
to Addressable. Hence, if I understand everything correctly
META-INF/company_model_teneo_annotations.xml
should be updated accordingly.
### Eclipse Workspace Patch 1.0
#P org.eclipse.emf.cdo.examples.hibernate.client
Index: META-INF/MANIFEST.MF
===================================================================
--- META-INF/MANIFEST.MF (revision 7692)
+++ META-INF/MANIFEST.MF (working copy)
@@ -18,7 +18,8 @@
org.eclipse.emf.teneo.hibernate.mapper;bundle-version="1.1.2",
org.eclipse.emf.teneo.annotations;bundle-version="1.1.2",
org.eclipse.emf.cdo.server.hibernate;bundle-version="3.0.0",
- org.hibernate;bundle-version="3.3.2"
+ org.hibernate;bundle-version="3.3.2",
+ org.eclipse.emf.ecore.change;bundle-version="2.7.0"
Import-Package: junit.framework;version="3.8.2",
org.apache.commons.logging;version="1.0.4"
Export-Package:
org.eclipse.emf.cdo.examples.hibernate.client;version="4.0.0"
#P org.eclipse.emf.cdo.examples.hibernate.server
Index: META-INF/company_model_teneo_annotations.xml
===================================================================
--- META-INF/company_model_teneo_annotations.xml (revision 7692)
+++ META-INF/company_model_teneo_annotations.xml (working copy)
@@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<epackage
namespace-uri="http://www.eclipse.org/emf/CDO/examples/company/1.0.0">
- <eclass name="Address">
+ <eclass name="Addressable">
<table name="theAddressTable"/>
</eclass>
</epackage>
|
|
|
Re: [CDO] CDO Hibernate - inconsistencies in test cases [message #686734 is a reply to message #686732] |
Fri, 13 May 2011 09:03 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Goetz,
Thanks for these pointers. I have entered an issue with a patch for the second issue. The first issue (dependency on EMF
Change) I could not reproduce, I tried and with me the examples client works fine without this dependency.
gr. Martin
On 05/13/2011 10:45 AM, Goetz Botterweck wrote:
> I noted two consistency in CDO Hibernate example test cases, which cause
> test cases to fail.
>
> 1) org.eclipse.emf.cdo.examples.hibernate.client should list EMF Change
> as a dependency
>
> 2) Apparently, there was a change in the metamodel in
> org.eclipse.emf.cdo.examples.company. The metaclass Address was renamed
> to Addressable. Hence, if I understand everything correctly
> META-INF/company_model_teneo_annotations.xml
> should be updated accordingly.
>
>
>
>
> ### Eclipse Workspace Patch 1.0
> #P org.eclipse.emf.cdo.examples.hibernate.client
> Index: META-INF/MANIFEST.MF
> ===================================================================
> --- META-INF/MANIFEST.MF (revision 7692)
> +++ META-INF/MANIFEST.MF (working copy)
> @@ -18,7 +18,8 @@
> org.eclipse.emf.teneo.hibernate.mapper;bundle-version="1.1.2",
> org.eclipse.emf.teneo.annotations;bundle-version="1.1.2",
> org.eclipse.emf.cdo.server.hibernate;bundle-version="3.0.0",
> - org.hibernate;bundle-version="3.3.2"
> + org.hibernate;bundle-version="3.3.2",
> + org.eclipse.emf.ecore.change;bundle-version="2.7.0"
> Import-Package: junit.framework;version="3.8.2",
> org.apache.commons.logging;version="1.0.4"
> Export-Package:
> org.eclipse.emf.cdo.examples.hibernate.client;version="4.0.0"
> #P org.eclipse.emf.cdo.examples.hibernate.server
> Index: META-INF/company_model_teneo_annotations.xml
> ===================================================================
> --- META-INF/company_model_teneo_annotations.xml (revision 7692)
> +++ META-INF/company_model_teneo_annotations.xml (working copy)
> @@ -3,7 +3,7 @@
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
> <epackage
> namespace-uri="http://www.eclipse.org/emf/CDO/examples/company/1.0.0">
> - <eclass name="Address">
> + <eclass name="Addressable">
> <table name="theAddressTable"/>
> </eclass>
> </epackage>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Re: [CDO] CDO Hibernate - inconsistencies in test cases [message #686891 is a reply to message #686732] |
Fri, 13 May 2011 09:03 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Goetz,
Thanks for these pointers. I have entered an issue with a patch for the second issue. The first issue (dependency on EMF
Change) I could not reproduce, I tried and with me the examples client works fine without this dependency.
gr. Martin
On 05/13/2011 10:45 AM, Goetz Botterweck wrote:
> I noted two consistency in CDO Hibernate example test cases, which cause
> test cases to fail.
>
> 1) org.eclipse.emf.cdo.examples.hibernate.client should list EMF Change
> as a dependency
>
> 2) Apparently, there was a change in the metamodel in
> org.eclipse.emf.cdo.examples.company. The metaclass Address was renamed
> to Addressable. Hence, if I understand everything correctly
> META-INF/company_model_teneo_annotations.xml
> should be updated accordingly.
>
>
>
>
> ### Eclipse Workspace Patch 1.0
> #P org.eclipse.emf.cdo.examples.hibernate.client
> Index: META-INF/MANIFEST.MF
> ===================================================================
> --- META-INF/MANIFEST.MF (revision 7692)
> +++ META-INF/MANIFEST.MF (working copy)
> @@ -18,7 +18,8 @@
> org.eclipse.emf.teneo.hibernate.mapper;bundle-version="1.1.2",
> org.eclipse.emf.teneo.annotations;bundle-version="1.1.2",
> org.eclipse.emf.cdo.server.hibernate;bundle-version="3.0.0",
> - org.hibernate;bundle-version="3.3.2"
> + org.hibernate;bundle-version="3.3.2",
> + org.eclipse.emf.ecore.change;bundle-version="2.7.0"
> Import-Package: junit.framework;version="3.8.2",
> org.apache.commons.logging;version="1.0.4"
> Export-Package:
> org.eclipse.emf.cdo.examples.hibernate.client;version="4.0.0"
> #P org.eclipse.emf.cdo.examples.hibernate.server
> Index: META-INF/company_model_teneo_annotations.xml
> ===================================================================
> --- META-INF/company_model_teneo_annotations.xml (revision 7692)
> +++ META-INF/company_model_teneo_annotations.xml (working copy)
> @@ -3,7 +3,7 @@
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
> <epackage
> namespace-uri="http://www.eclipse.org/emf/CDO/examples/company/1.0.0">
> - <eclass name="Address">
> + <eclass name="Addressable">
> <table name="theAddressTable"/>
> </eclass>
> </epackage>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
Goto Forum:
Current Time: Sat Apr 27 01:59:49 GMT 2024
Powered by FUDForum. Page generated in 0.02449 seconds
|