📄 tpricing.java
字号:
package tarena.netctoss.model;
import java.io.Serializable;
import java.util.Set;
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 Tpricing implements Serializable {
/** identifier field */
private Long pricingId;
/** nullable persistent field */
private String pricingName;
/** nullable persistent field */
private double baseFee;
/** nullable persistent field */
private double rateFee;
/** nullable persistent field */
private String pricingDesc;
/** persistent field */
private Set tuserServices;
/** full constructor */
public Tpricing(Long pricingId, String pricingName, double baseFee, double rateFee, String pricingDesc, Set tuserServices) {
this.pricingId = pricingId;
this.pricingName = pricingName;
this.baseFee = baseFee;
this.rateFee = rateFee;
this.pricingDesc = pricingDesc;
this.tuserServices = tuserServices;
}
/** default constructor */
public Tpricing() {
}
/** minimal constructor */
public Tpricing(Long pricingId, Set tuserServices) {
this.pricingId = pricingId;
this.tuserServices = tuserServices;
}
public Long getPricingId() {
return this.pricingId;
}
public void setPricingId(Long pricingId) {
this.pricingId = pricingId;
}
public String getPricingName() {
return this.pricingName;
}
public void setPricingName(String pricingName) {
this.pricingName = pricingName;
}
public double getBaseFee() {
return this.baseFee;
}
public void setBaseFee(double baseFee) {
this.baseFee = baseFee;
}
public double getRateFee() {
return this.rateFee;
}
public void setRateFee(double rateFee) {
this.rateFee = rateFee;
}
public String getPricingDesc() {
return this.pricingDesc;
}
public void setPricingDesc(String pricingDesc) {
this.pricingDesc = pricingDesc;
}
public Set getTuserServices() {
return this.tuserServices;
}
public void setTuserServices(Set tuserServices) {
this.tuserServices = tuserServices;
}
public String toString() {
return "id==>"+pricingId+
" name==>"+pricingName+
" base fee==>"+baseFee+
" rate fee==>"+rateFee+
" desc==>"+pricingDesc;
}
public boolean equals(Object other) {
if ( !(other instanceof Tpricing) ) return false;
Tpricing castOther = (Tpricing) other;
return new EqualsBuilder()
.append(this.getPricingId(), castOther.getPricingId())
.isEquals();
}
public int hashCode() {
return new HashCodeBuilder()
.append(getPricingId())
.toHashCode();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -