我正在尝试将节点实体的属性映射到我的prop字段,但似乎无法正常工作。由于某些原因,它始终为空。
我尝试遵循以下步骤: https://neo4j.com/docs/ogm-manual/current/reference/#reference:annotating-entities:node-entity:dynamic-properties 但是我不确定自己在做什么错。
@NodeEntity
open class Symptom(
@Id
var id: String
)
{
@Relationship(type = "SUGGESTS", direction = Relationship.OUTGOING)
var suggests: MutableSet<SuggestsRel>? = mutableSetOf()
@Properties(allowCast = true)
var prop: MutableMap<String, Any>? = mutableMapOf()
}