How can I use neo4j OGM with idiomatic Scala classes? -
i use neo4j's new ogm library idiomatic (ie, case classes, immutable) scala classes domain objects.
are there additional annotations can use make following class work neo4j ogm? country defined below not persisted because @graphid isn't found. if add mutable graph id member var (already undesirable, but...) object persisted without name property.
@nodeentity case class country ( val name: string, @graphid val id: java.lang.long = 0 ) am stuck using java-like classes mutable properties now?
thanks! steve
graphids should never have values assigned them manually. reason why entity not save expected. other i'm not familiar scala related thread on neo4j-ogm , scala neo4j ogm example scala
Comments
Post a Comment