[Neo4j] Meta-model component: problem with renaming classes
jri at deepamehta.de
Tue Jul 6 21:14:36 CEST 2010
Yes, it is working now.
Thank you very much!
On Jul 6, 2010, at 16:53, Niels Hoogeveen wrote:
> Fixed the issue with the removed method.
>> From: jri at deepamehta.de
>> Date: Tue, 6 Jul 2010 15:22:14 +0200
>> To: user at lists.neo4j.org
>> Subject: Re: [Neo4j] Meta-model component: problem with renaming classes
>> I've tested the 2 new methods.
>> rename() works as expected.
>> With remove() there is an issue:
>> once a class is removed, getMetaClass("name", false) returns a stale MetaModelClass object if -- and only if -- that class has been renamed before. It is expected to return null.
>> If the class has not been renamed before remove() works OK.
>> // create class
>> namespace.getMetaClass("My Class", true);
>> // rename class
>> namespace.rename("My Class", "New Class");
>> // remove renamed class
>> namespace.remove("New Class", true);
>> // ERROR: this call returns a stale MetaModelClass object. It is expected to return null.
>> namespace.getMetaClass("New Class", false);
>> Thank you very much for the quick action :-)
More information about the User