package com.creditratingmodule.bean;
import java.io.Serializable;
import com.creditratingtypemodule.bean.TbCreditRatingType;
import com.creditratingtypemodule.dao.TbCreditRatingTypeDAO;
public class TbCreditRating implements Serializable{
private int creditRatingId;
private int creditRatingTypeId;
private TbCreditRatingType tbCreditRatingType;
private double creditRatingScore;
private String createTime;
public int getCreditRatingId(){
return creditRatingId;
}
public void setCreditRatingId(int creditRatingId){
this.creditRatingId = creditRatingId;
}
public int getCreditRatingTypeId(){
return creditRatingTypeId;
}
public void setCreditRatingTypeId(int creditRatingTypeId){
this.creditRatingTypeId = creditRatingTypeId;
this.tbCreditRatingType=new TbCreditRatingTypeDAO().getTbCreditRatingTypeByCreditRatingTypeId(creditRatingTypeId);
}
public double getCreditRatingScore(){
return creditRatingScore;
}
public void setCreditRatingScore(double creditRatingScore){
this.creditRatingScore = creditRatingScore;
}
public String getCreateTime(){
return createTime;
}
public void setCreateTime(String createTime){
this.createTime = createTime;
}
public TbCreditRatingType getTbCreditRatingType() {
return tbCreditRatingType;
}
public void setTbCreditRatingType(TbCreditRatingType tbCreditRatingType) {
this.tbCreditRatingType = tbCreditRatingType;
}
public TbCreditRating(){
}
public TbCreditRating(int creditRatingTypeId,double creditRatingScore,String createTime){
this.creditRatingTypeId = creditRatingTypeId;
this.creditRatingScore = creditRatingScore;
this.createTime = createTime;
}
public TbCreditRating(int creditRatingId,int creditRatingTypeId,double creditRatingScore,String createTime){
this.creditRatingId = creditRatingId;
this.creditRatingTypeId = creditRatingTypeId;
this.creditRatingScore = creditRatingScore;
this.createTime = createTime;
}
}