|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- package vn.azteam.tpf.domain;
-
- import org.hibernate.annotations.Cache;
- import org.hibernate.annotations.CacheConcurrencyStrategy;
-
- import javax.persistence.*;
-
- import org.springframework.data.elasticsearch.annotations.Document;
- import java.io.Serializable;
- import java.util.Objects;
-
- /**
- * A TBExternalTable.
- */
- @Entity
- @Table(name = "tb_external_table")
- @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
- @Document(indexName = "smf_tbexternaltable")
- public class TBExternalTable implements Serializable {
-
- private static final long serialVersionUID = 1L;
-
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Long id;
-
- @Column(name = "name")
- private String name;
-
- @Column(name = "description")
- private String description;
-
- @Column(name = "object_type")
- private Integer objectType;
-
- @Column(name = "foreign_key")
- private String foreignKey;
-
- @Column(name = "relation_table")
- private String relationTable;
-
- // jhipster-needle-entity-add-field - JHipster will add fields here, do not remove
- public Long getId() {
- return id;
- }
-
- public void setId(Long id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public TBExternalTable name(String name) {
- this.name = name;
- return this;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getDescription() {
- return description;
- }
-
- public TBExternalTable description(String description) {
- this.description = description;
- return this;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public String getRelationTable() {
- return relationTable;
- }
-
- public TBExternalTable relationTable(String relationTable) {
- this.relationTable = relationTable;
- return this;
- }
-
- public void setRelationTable(String relationTable) {
- this.relationTable = relationTable;
- }
-
- public String getForeignKey() {
- return foreignKey;
- }
-
- public TBExternalTable foreignKey(String foreignKey) {
- this.foreignKey = foreignKey;
- return this;
- }
-
- public void setForeignKey(String foreignKey) {
- this.foreignKey = foreignKey;
- }
-
- public Integer getObjectType() {
- return objectType;
- }
-
- public TBExternalTable objectType(Integer objectType) {
- this.objectType = objectType;
- return this;
- }
-
- public void setObjectType(Integer objectType) {
- this.objectType = objectType;
- }
- // jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here, do not remove
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- TBExternalTable tBExternalTable = (TBExternalTable) o;
- if (tBExternalTable.getId() == null || getId() == null) {
- return false;
- }
- return Objects.equals(getId(), tBExternalTable.getId());
- }
-
- @Override
- public int hashCode() {
- return Objects.hashCode(getId());
- }
-
- @Override
- public String toString() {
- return "TBExternalTable{" +
- "id=" + getId() +
- ", name='" + getName() + "'" +
- ", description='" + getDescription() + "'" +
- ", objectType=" + getObjectType() +
- "}";
- }
- }
|