package org.zstack.header.identity; import org.zstack.header.vo.Index; import org.zstack.header.vo.ResourceVO; import javax.persistence.*; import java.sql.Timestamp; @Entity @Table public class AccountVO extends ResourceVO { @Column @Index private String name; @Column private String description; @Column private String password; @Column private Timestamp createDate; @Column private Timestamp lastOpDate; @Column @Enumerated(EnumType.STRING) private AccountType type; @PreUpdate private void preUpdate() { lastOpDate = null; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public AccountType getType() { return type; } public void setType(AccountType type) { this.type = type; } public Timestamp getCreateDate() { return createDate; } public void setCreateDate(Timestamp createDate) { this.createDate = createDate; } public Timestamp getLastOpDate() { return lastOpDate; } public void setLastOpDate(Timestamp lastOpDate) { this.lastOpDate = lastOpDate; } }