org.catools.etl.model.CEtlPriority Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of etl Show documentation
Show all versions of etl Show documentation
The base ETL to be used in other CATools project as a base contract.
package org.catools.etl.model;
import org.catools.common.json.CJsonUtil;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Objects;
@Entity
@Table(name = "priority", schema = "etl")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "priority")
public class CEtlPriority implements Serializable {
private static final long serialVersionUID = 6067874018185613747L;
@Id
@Column(name = "id", length = 20)
private String id;
@Column(name = "name")
private String name;
public CEtlPriority() {
}
public CEtlPriority(String id, String name) {
this.id = id;
this.name = name;
}
public String getId() {
return id;
}
public CEtlPriority setId(String id) {
this.id = id;
return this;
}
public String getName() {
return name;
}
public CEtlPriority setName(String name) {
this.name = name;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CEtlPriority that = (CEtlPriority) o;
return Objects.equals(id, that.id) &&
Objects.equals(name, that.name);
}
@Override
public int hashCode() {
return Objects.hash(id, name);
}
@Override
public String toString() {
return CJsonUtil.toString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy