package org.zstack.header.identity; import org.zstack.header.vo.ResourceVO; import org.zstack.header.vo.ResourceVO_; import javax.persistence.*; import java.sql.Timestamp; /** * Created by frank on 7/13/2015. */ @Entity @Table public class QuotaVO extends ResourceVO { @Column private String name; @Column private String identityUuid; @Column private String identityType; @Column private long value; @Column private Timestamp lastOpDate; @Column private Timestamp createDate; @PreUpdate private void preUpdate() { lastOpDate = null; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getIdentityUuid() { return identityUuid; } public void setIdentityUuid(String identityUuid) { this.identityUuid = identityUuid; } public String getIdentityType() { return identityType; } public void setIdentityType(String identityType) { this.identityType = identityType; } public long getValue() { return value; } public void setValue(long value) { this.value = value; } public Timestamp getLastOpDate() { return lastOpDate; } public void setLastOpDate(Timestamp lastOpDate) { this.lastOpDate = lastOpDate; } public Timestamp getCreateDate() { return createDate; } public void setCreateDate(Timestamp createDate) { this.createDate = createDate; } }