1 package org.usermanagement.dao.entity;
3 import javax.persistence.Column;
4 import javax.persistence.Entity;
5 import javax.persistence.GeneratedValue;
6 import javax.persistence.GenerationType;
7 import javax.persistence.Id;
8 import javax.persistence.Table;
13 @Table(
name =
"kilda_status")
17 @Column(
name =
"status_id", nullable =
false)
18 @GeneratedValue(strategy = GenerationType.SEQUENCE)
19 private Integer statusId;
21 @Column(
name =
"status_code", nullable =
false)
22 private String statusCode;
24 @Column(
name =
"status", nullable =
false)
32 this.statusId = statusId;
40 this.statusCode = statusCode;
53 return "StatusEntity [statusId=" + statusId +
", statusCode=" + statusCode +
", status=" +
status +
"]";
60 result = prime *
result + ((statusId == null) ? 0 : statusId.hashCode());
65 public boolean equals(
final Object obj) {
72 if (getClass() != obj.getClass()) {
76 if (statusId == null) {
77 if (other.statusId != null) {
80 }
else if (!statusId.equals(other.statusId)) {
void setStatusCode(final String statusCode)
boolean equals(final Object obj)
void setStatus(final String status)
void setStatusId(final Integer statusId)