package org.zstack.core.keyvalue; import org.zstack.header.vo.ForeignKey; import org.zstack.header.vo.ForeignKey.ReferenceOption; import javax.persistence.*; /** */ @Entity @Table public class KeyValueVO { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column private long id; @Column @ForeignKey(parentEntityClass = KeyValueBinaryVO.class, onDeleteAction = ReferenceOption.CASCADE) private String uuid; @Column private String className; @Column private String entityKey; @Column private String entityValue; @Column private String valueType; public long getId() { return id; } public void setId(long id) { this.id = id; } public String getValueType() { return valueType; } public void setValueType(String valueType) { this.valueType = valueType; } public String getUuid() { return uuid; } public void setUuid(String uuid) { this.uuid = uuid; } public String getClassName() { return className; } public void setClassName(String className) { this.className = className; } public String getEntityKey() { return entityKey; } public void setEntityKey(String entityKey) { this.entityKey = entityKey; } public String getEntityValue() { return entityValue; } public void setEntityValue(String entityValue) { this.entityValue = entityValue; } }