Dictionary/src/java/org/thdl/lex/component/child/TransitionalDataLabel.java

68 lines
1.6 KiB
Java

package org.thdl.lex.component.child;
import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/** @author Hibernate CodeGenerator */
public class TransitionalDataLabel implements Serializable {
/** identifier field */
private Short id;
/** nullable persistent field */
private String transitionalDataLabel;
private Integer priority;
/** full constructor */
public TransitionalDataLabel(String transitionalDataLabel) {
this.transitionalDataLabel = transitionalDataLabel;
}
/** default constructor */
public TransitionalDataLabel() {
}
public Short getId() {
return this.id;
}
public void setId(Short id) {
this.id = id;
}
public String getTransitionalDataLabel() {
return this.transitionalDataLabel;
}
public void setTransitionalDataLabel(String transitionalDataLabel) {
this.transitionalDataLabel = transitionalDataLabel;
}
public String toString() {
return new ToStringBuilder(this).append("id", getId()).toString();
}
public boolean equals(Object other) {
if (!(other instanceof TransitionalDataLabel))
return false;
TransitionalDataLabel castOther = (TransitionalDataLabel) other;
return new EqualsBuilder().append(this.getId(), castOther.getId())
.isEquals();
}
public int hashCode() {
return new HashCodeBuilder().append(getId()).toHashCode();
}
public Integer getPriority() {
return priority;
}
public void setPriority(Integer priority) {
this.priority = priority;
}
}