|
Re: Validation Exception with Teneo 0.7.5 (April 22) when moving to EMF 2.2.2 [message #85502 is a reply to message #85487] |
Tue, 05 June 2007 07:12 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Is ID an eattribute with the ID property set to true? Afaik, in xml schema the ID attribute is used
to uniquely identify an instance in a xml document (without additional type information), so the id
needs to be unique accross all types in one xml document/resource. This constraint is checked by
emf. So this is more an emf/xml schema than a teneo/hibernate related topic.
gr. Martin
Sundeep Prakash wrote:
> Moved to EMF Ecore 2.2.2, and now when trying to save Resources, I get
> the following StoreValidationException:
>
> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
> com.tibco.matrix.models.componentmodel.impl.ResourcesTypeImp l@5b1426{hibernate://?dsname=amx50&query1=FROM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#//@component/@resources}
> The ID '1' of
> ' com.tibco.matrix.models.componentmodel.impl.UiResourceTypeIm pl@14af469{hibernate://?dsname=amx50&query1=FROM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#1}' collides with that of
> ' com.tibco.matrix.models.administrationmodel.impl.MatrixAdmin InstanceImpl@154f77b{hibernate://?dsname=amx50&query1=FR OM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#1}'
>
> When I look at the code, the validation is being done by
> org.eclipse.emf.teneo.resource.NonLoadingDiagnostician which extends
> (and uses methods from) org.eclipse.emf.ecore.util.Diagnostician.
> Is this a known problem in moving to EMF Ecore 2.2.2? Is there a
> workaround? The two objects that are "conflicting" here are actually
> from completely different tables i.e. they are not extended from the
> same model base class - so it should be ok for them to have the same IDs.
> Thanks,
>
> Sundeep
>
>
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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: Validation Exception with Teneo 0.7.5 (April 22) when moving to EMF 2.2.2 [message #606855 is a reply to message #85487] |
Tue, 05 June 2007 07:12 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Is ID an eattribute with the ID property set to true? Afaik, in xml schema the ID attribute is used
to uniquely identify an instance in a xml document (without additional type information), so the id
needs to be unique accross all types in one xml document/resource. This constraint is checked by
emf. So this is more an emf/xml schema than a teneo/hibernate related topic.
gr. Martin
Sundeep Prakash wrote:
> Moved to EMF Ecore 2.2.2, and now when trying to save Resources, I get
> the following StoreValidationException:
>
> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
> com.tibco.matrix.models.componentmodel.impl.ResourcesTypeImp l@5b1426{hibernate://?dsname=amx50&query1=FROM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#//@component/@resources}
> The ID '1' of
> ' com.tibco.matrix.models.componentmodel.impl.UiResourceTypeIm pl@14af469{hibernate://?dsname=amx50&query1=FROM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#1}' collides with that of
> ' com.tibco.matrix.models.administrationmodel.impl.MatrixAdmin InstanceImpl@154f77b{hibernate://?dsname=amx50&query1=FR OM
> AdminCluster cluster left join fetch cluster.plugins plugin where
> plugin.name = 'amxadministrator'#1}'
>
> When I look at the code, the validation is being done by
> org.eclipse.emf.teneo.resource.NonLoadingDiagnostician which extends
> (and uses methods from) org.eclipse.emf.ecore.util.Diagnostician.
> Is this a known problem in moving to EMF Ecore 2.2.2? Is there a
> workaround? The two objects that are "conflicting" here are actually
> from completely different tables i.e. they are not extended from the
> same model base class - so it should be ok for them to have the same IDs.
> Thanks,
>
> Sundeep
>
>
>
>
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04080 seconds