Skip to content

Commit

Permalink
Also serializing the full name of a Node as name in Neo4J
Browse files Browse the repository at this point in the history
Currently blocked by neo4j/neo4j-ogm#932
  • Loading branch information
oxisto committed Jan 26, 2023
1 parent cf4223e commit e6d4eb6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ class NameConverter : CompositeAttributeConverter<Name> {

companion object {
const val FIELD_FULL_NAME = "fullName"
const val FIELD_NAME = "name"
const val FIELD_LOCAL_NAME = "localName"
const val FIELD_NAME_DELIMITER = "nameDelimiter"
}

override fun toGraphProperties(value: Name): MutableMap<String, *> {
val map = mutableMapOf<String, String>()
map[FIELD_NAME] = value.toString()
map[FIELD_FULL_NAME] = value.toString()
map[FIELD_LOCAL_NAME] = value.localName
map[FIELD_NAME_DELIMITER] = value.delimiter
Expand Down

0 comments on commit e6d4eb6

Please sign in to comment.