Issue Details (XML | Word | Printable)

Key: NUCNEOFORJ-9
Type: Task Task
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

Handle querying of objects that have no property for a field that is null

Created: 30/Jul/12 11:47 AM   Updated: 25/Oct/13 03:33 PM
Component/s: Query
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
Current SVN trunk will persist any null field by just omitting the property. This matches Neo4j advice about how to handle null property values.

This will obviously cause problems with any query that makes explicit mention of the field, and will get an exception about Node xxx not having the property. We should update any query that is comparing against a particular value to check if the property exists and if comparing with null to check if it doesn't exist.

Andy Jefferson made changes - 25/Oct/13 03:33 PM
Field Original Value New Value
Description Current SVN trunk will persist any null field by just omitting the property. This will obviously cause problems with any query that makes explicit mention of the field, and will get an exception about Node xxx not having the property. We should store some special value in the property maybe to reflect it being null. Current SVN trunk will persist any null field by just omitting the property. This matches Neo4j advice about how to handle null property values.

This will obviously cause problems with any query that makes explicit mention of the field, and will get an exception about Node xxx not having the property. We should update any query that is comparing against a particular value to check if the property exists and if comparing with null to check if it doesn't exist.
Component/s Persistence [ 10330 ]
Andy Jefferson made changes - 25/Oct/13 03:33 PM
Summary Handle persistence of null fields Handle querying of objects that have no property for a field that is null