Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo][CDO-Hibernate] Problem with CDOFeatures identity
[Teneo][CDO-Hibernate] Problem with CDOFeatures identity [message #617872] Tue, 22 April 2008 12:28
Eric is currently offline EricFriend
Messages: 40
Registered: July 2009
Member
Hi Martin, Eike,

I have a problem when looking for features with the latest version of
CDO (from CVS). Me and Simon reported a bug a few days ago about
multiple inheritence in CDO and the fix was to add the following code to
CDOClassImpl.java(version 1.35):

public int getFeatureID(CDOFeature feature)
{
int index = feature.getFeatureIndex();
if (index != -1)
{
CDOFeature[] features = getAllFeatures();
while (index < features.length)
{
if (features[index] == feature) <------- Need to be same object!
{
return index;
}

++index;
}
}

return -1;
}

As you can see, in order to find the right feature, it needs to be
contained in the allFeatures[] array. When debugging my code, we've
noticed that the feature I was looking for wasn't in the array, so
probably Teneo did a copy of the features... Is it possible that Teneo
might not be up to date with this CDO fix yet?

Thanks,
Eric
Previous Topic:emfatic
Next Topic:[CDO] Storing multivalue-attributes
Goto Forum:
  


Current Time: Wed Apr 01 15:54:40 GMT 2020

Powered by FUDForum. Page generated in 0.01684 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top