cn.cloudself.demo.java.entity.ZzSetting Maven / Gradle / Ivy
package cn.cloudself.demo.java.entity;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;
/**
*
*/
@Entity
@Table(name = "setting")
public class ZzSetting implements Serializable {
private static final long serialVersionUID = 1L;
/** */
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private Long id;
/** */
@Column(name = "user_id")
private Long userId;
/** */
@Column(name = "kee")
private String kee;
/** */
@Column(name = "value")
private String value;
/** */
@Column(name = "deleted")
private Boolean deleted;
public Long getId() {
return id;
}
public ZzSetting setId(Long id) {
this.id = id;
return this;
}
public Long getUserId() {
return userId;
}
public ZzSetting setUserId(Long userId) {
this.userId = userId;
return this;
}
public String getKee() {
return kee;
}
public ZzSetting setKee(String kee) {
this.kee = kee;
return this;
}
public String getValue() {
return value;
}
public ZzSetting setValue(String value) {
this.value = value;
return this;
}
public Boolean getDeleted() {
return deleted;
}
public ZzSetting setDeleted(Boolean deleted) {
this.deleted = deleted;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ZzSetting zzSetting = (ZzSetting) o;
return Objects.equals(id, zzSetting.id) && Objects.equals(userId, zzSetting.userId) && Objects.equals(kee, zzSetting.kee) && Objects.equals(value, zzSetting.value) && Objects.equals(deleted, zzSetting.deleted);
}
@Override
public int hashCode() {
return Objects.hash(id, userId, kee, value, deleted);
}
@Override
public String toString() {
return "ZzSetting{" +
", id=" + id +
", userId=" + userId +
", kee='" + kee + '\'' +
", value='" + value + '\'' +
", deleted=" + deleted +
'}';
}
}