Changeset [87e054fa342c7796a1df34e154da735451c17ad5] by Andreas Ronge

July 20th, 2014 @ 10:37 PM

Implemented id_property so that the id of the node can be specified instead of using neo_id

  • Reimplemented Neo4j::Config so that default value for id_property can be specified
  • Allow to specify index and constraint

Use the Neo4j::Config to set default value for id_property. Probably need some callback from neo4j-core when session is started to configure the id property since we need a session to create indexes.

Committed by Andreas Ronge

  • A lib/neo4j/active_node/id_property.rb
  • A lib/neo4j/config.rb
  • A spec/e2e/id_property_spec.rb
  • A spec/unit/config.yml
  • A spec/unit/config_spec.rb
  • M Gemfile
  • M config/neo4j/config.yml
  • M lib/neo4j.rb
  • M lib/neo4j/active_node.rb
  • M lib/neo4j/active_node/identity.rb
  • M lib/neo4j/active_node/initialize.rb
  • M lib/neo4j/active_node/labels.rb
  • M lib/neo4j/active_node/persistence.rb
  • M lib/neo4j/active_node/property.rb
  • M lib/neo4j/type_converters.rb
  • M spec/e2e/label_spec.rb
  • M spec/e2e/validation_uniqueness_spec.rb
  • M spec/unit/identity_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Neo4j.rb is a graph database framework for JRuby.

It provides:

* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails