Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support persistence of "attributed relation" class as a Relationship #5

Open
andyjefferson opened this issue Apr 11, 2016 · 0 comments

Comments

@andyjefferson
Copy link
Member

If we have an M-N relation and we want to store some properties on the relation we create an intermediate model class, with the source and target objects present as well as the properties we want to store. Currently this will be stored as a Node, with Relationship to source Node, and Relationship to target Node. Would be a nice alternative to be able to persist objects of this type as a Relationship between Node for source and Node for target.

Would only apply to POJO that has 2 relation fields (source and target, and no other), and these objects cannot be null. The majority of SVN trunk already uses PropertyContainer instead of Node, and Neo4jUtils has a convenience method to detect if a class is marked as "attributed relation".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant