【发布时间】:2017-05-16 14:17:26
【问题描述】:
我有以下 SDN 4 个实体:
Decision、Characteristic 和 Value:
@NodeEntity
public class Value {
private final static String SET_FOR = "SET_FOR";
private final static String SET_ON = "SET_ON";
@Relationship(type = SET_FOR, direction = Relationship.OUTGOING)
private Decision decision;
@Relationship(type = SET_ON, direction = Relationship.OUTGOING)
private Characteristic characteristic;
@Index(unique = false)
private Object value;
private String description;
...
}
我想为Value 添加多语言支持,以便能够提供任何语言的Value.value 和Value.description。
能否请您展示一种使用当前架构实现此功能的正确方法?
例如,我是否应该在此处添加一个额外的节点(与值节点关联)来表示每种新语言的值/描述对,或者可以通过在现有值节点中引入新的语言特定属性来完成?
【问题讨论】: