
error when indexing w/ inheritance
Reported by Andreas Ronge | February 17th, 2011 @ 12:47 PM | in 1.0.0
Looks like it does not work with inheritance
Also, it looks like it does not use the :type => DateTime
parameter
class MyModel < Neo4j::Rails::Model
property :created_at, :type => DateTime
index :created_at
end
class MySubclass < MyModel
end
MySubclass.create(:created_at => Time.now.getutc)
WARNING: Caught exception from tx
syncronization[org.neo4j.kernel.impl.core.TransactionEventsSyncHook@18420e86]
beforeCompletion()
java.lang.RuntimeException: org.jruby.exceptions.RaiseException:
Native Exception: 'class java.lang.IllegalStateException'; Message:
Value should be a Number, is 1297885169 (class
org.neo4j.index.impl.lucene.ValueContext); StackTrace:
java.lang.IllegalStateException: Value should be a Number, is
1297885169 (class
org.neo4j.index.impl.lucene.ValueContext)
Comments and changes to this ticket
-
Andreas Ronge February 17th, 2011 @ 02:34 PM
- State changed from new to resolved
(from [25113c0446b1fa26c5038244cd0b2a284273cf54]) Fixed error when indexing w/ inheritance [#151 state:resolved]
Also, fixed so that it can be saved as Date and DateTime, it was overridden by saving it as Time
https://github.com/andreasronge/neo4j/commit/25113c0446b1fa26c50382...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
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
People watching this ticket
Tags
Referenced by
-
151 error when indexing w/ inheritance (from [25113c0446b1fa26c5038244cd0b2a284273cf54]) Fixed e...