11package org .zstack .header .vm .additions ;
22
3- import org .zstack .header .vm .VmInstanceEO ;
43import org .zstack .header .vo .EntityGraph ;
54import org .zstack .header .vo .ForeignKey ;
65import org .zstack .header .vo .ResourceVO ;
2120@ Table
2221@ EntityGraph (
2322 friends = {
24- @ EntityGraph .Neighbour (type = VmInstanceEO .class , myField = "vmInstanceUuid " , targetField = "uuid" ),
23+ @ EntityGraph .Neighbour (type = ResourceVO .class , myField = "resourceUuid " , targetField = "uuid" ),
2524 }
2625)
2726public class VmHostBackupFileVO extends ResourceVO {
2827 @ Column
29- @ ForeignKey (parentEntityClass = VmInstanceEO .class , onDeleteAction = ForeignKey .ReferenceOption .CASCADE )
30- private String vmInstanceUuid ;
28+ private String resourceUuid ;
3129 @ Column
3230 @ Enumerated (EnumType .STRING )
3331 private VmHostFileType type ;
@@ -36,12 +34,12 @@ public class VmHostBackupFileVO extends ResourceVO {
3634 @ Column
3735 private Timestamp lastOpDate ;
3836
39- public String getVmInstanceUuid () {
40- return vmInstanceUuid ;
37+ public String getResourceUuid () {
38+ return resourceUuid ;
4139 }
4240
43- public void setVmInstanceUuid (String vmInstanceUuid ) {
44- this .vmInstanceUuid = vmInstanceUuid ;
41+ public void setResourceUuid (String resourceUuid ) {
42+ this .resourceUuid = resourceUuid ;
4543 }
4644
4745 public VmHostFileType getType () {
@@ -71,7 +69,7 @@ public void setLastOpDate(Timestamp lastOpDate) {
7169 @ Override
7270 public String toString () {
7371 return "VmHostBackupFileVO{" +
74- "vmInstanceUuid ='" + vmInstanceUuid + '\'' +
72+ "resourceUuid ='" + resourceUuid + '\'' +
7573 ", type=" + type +
7674 ", createDate=" + createDate +
7775 ", lastOpDate=" + lastOpDate +
0 commit comments