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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -