Hi,
I think you'd like to use something like this:
MetaStructureClass userClass = ...
MetaStructureClass accountClass = ...
MetaStructureProperty userHasAccount =
namespace.getMetaProperty( "user_has_account", true );
userClass.getDirectProperties().add( userHasAccount );
userHasAccount.setRange(
new MetaStructureClassRange( accountClass ) );
Is that what you're looking for?
2009/8/3 Jerry Juanico <[email protected]>:
> Hi All,
>
> I am currently working with one of the features of ne04j, which is the meta
> structure.
> I have tried implementing the test examples and it works fine.
> But the whole concept is still vague to me.
>
> I have noticed that the relationship type is automatic once I invoke the
> class and property instance.
>
> I am expecting that it's possible to defined specific relationship type as I
> did in a simple node/relationship/property structure, but I cannot find any
> from the list of meta structure API.
>
> Can someone tell me how?
>
> Thanks.
>
> Jerry
> _______________________________________________
> Neo mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
--
Mattias Persson, [[email protected]]
Neo Technology, www.neotechnology.com
_______________________________________________
Neo mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user