Issue Details (XML | Word | Printable)

Key: NUCNEOFORJ-27
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Store Neo4j

Support persistence of "attributed relation" class as a Relationship

Created: 13/Aug/12 09:23 AM   Updated: 13/Aug/12 09:23 AM
Component/s: Persistence
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
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".

Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.