Andi Vajda <[email protected]> wrote:
> I changed the 'Type' suffix used to name Python types to '$$Type'.
> neo4j now lets itself be wrapped. Fixed in rev 748053.
Andi, thanks for this.
Though it brings up another matter :-).
neo4j has this funky RelationshipType usage, too. RelationshipType is
an interface, and you instantiate classes that implement that interface
to create distinct relationship types (thus the name). So I had to
write some Java code to allow me to write Python classes for this
purpose -- a Java Python-extension class which implements
RelationshipType. But the example on the neo4j page does it a bit
differently, using a Java enum:
enum MyRelationshipTypes implements RelationshipType
{
KNOWS,
FORGETS
}
This presumably creates a set of instances (KNOWS and FORGETS), each of
which is a MyRelationshipTypes. Is there any alternative mapping of
this kind of thing via JCC to the Python world?
Bill