The caching for MetaModelObjects takes place in MetaModelNamespace, so renaming 
and removal should take place there.

> Date: Mon, 5 Jul 2010 20:27:49 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [Neo4j] Meta-model component: problem with renaming classes
> 
> 2010/7/5 Niels Hoogeveen <[email protected]>
> 
> >
> > If Mattias agrees, I suggest adding the methods:
> > MetaModelNamespace#rename(String oldName, String newName)
> > MetaModelNamespace#remove(String name, Boolean forced)
> > If forced is false, throw exception when relations exist to other
> > MetaModelObjects or in case of a MetaModelClass, has associated instances.
> > If forced is true, all relationships are removed together with the
> > MetaModelObject.
> > I am willing to make the changes, but want approval from the Neo4J team
> > before making these adjustments.
> > Niels
> >
> 
> Sure, I don't see why not. But shouldn't those be on MetaModelObject or some
> other class (not MetaModelNamespace)?
> 
> 
> > > From: [email protected]
> > > Date: Mon, 5 Jul 2010 13:54:10 +0200
> > > To: [email protected]
> > > Subject: Re: [Neo4j] Meta-model component: problem with renaming classes
> > >
> > >
> > > On Jul 5, 2010, at 9:13, Niels Hoogeveen wrote:
> > >
> > > > MetaModelClasses are cached in a map, so while the property may be
> > renamed and reindexed, the map still holds the original name value. After a
> > restart of the application the new value should be applied. To make renaming
> > possible a method needs to be added to MetaModelNamespace.
> > > > Niels
> > >
> > > Thank you for the info!
> > > Restarting the application is not an option in dynamic environments,
> > where classes come and go (and change their names) at runtime.
> > > BTW: deleting a class is also an issue with the meta-model component.
> > >
> > > Is it possible for you to add a setName() method to MetaModelObject (or
> > elsewhere)?
> > >
> > > This would allow developers to use the meta-model component in dynamic
> > applications.
> > >
> > > Cheers
> > > Jörg
> > >
> > > _______________________________________________
> > > Neo4j mailing list
> > > [email protected]
> > > https://lists.neo4j.org/mailman/listinfo/user
> >
> > _________________________________________________________________
> > Express yourself instantly with MSN Messenger! Download today it's FREE!
> > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> > _______________________________________________
> > Neo4j mailing list
> > [email protected]
> > https://lists.neo4j.org/mailman/listinfo/user
> >
> 
> 
> 
> -- 
> Mattias Persson, [[email protected]]
> Hacker, Neo Technology
> www.neotechnology.com
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
                                          
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to