vendredi 19 septembre 2014

Datomic valueType


Vote count:

0




When trying to persist a list of entities with a :threshold attribute defined thus in the schema:



{:db/id #db/id[:db.part/db]
:db/ident :threshold
:db/valueType :db.type/long
:db/cardinality :db.cardinality/one
:db/fulltext false
:db/doc "Threshold"
:db.install/_attribute :db.part/db}


i get the following error: CompilerException java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: :db.error/wrong-type-for-attribute Value 90 is not a valid :int for attribute :threshold


Curiously enough, i took the EDN for the specific entity with :node threshold 90 from the REPL and manually transact'ed it, and it worked without any problems. Can someone please help?


Thanks, Vitaliy.



asked 1 min ago







Datomic valueType

Aucun commentaire:

Enregistrer un commentaire