I would like to use Neo4j's new OGM library with idiomatic (ie, case classes, immutable) Scala classes for my domain objects.
Are there additional annotations I can use to make the following class work with Neo4j OGM? A country as defined below does not get persisted because the @GraphId isn't found. If I add a mutable graph id member var (already undesirable, but...) then an object is persisted but without the name property.
@NodeEntity
case class Country (
val name: String,
@GraphId val id: java.lang.Long = 0
)
Am I stuck with using Java-like classes with mutable properties for now?
Thanks! Steve