日期:2014-05-18 浏览次数:20798 次
@Entity
@Table(name="sd_model_rounds_ms")
@JsonIgnoreProperties(ignoreUnknown=true)
public class MsModelRound extends IdEntity {
private static final long serialVersionUID = 2538050862929164143L;
private Double industryAdjust;
private Double marketAdjust;
private List<MsModelMarketAdjust> modelMarketAdjusts;
private List<MsModelIndustryAdjust> modelIndustryAdjusts;
private Integer modelId;
public Double getIndustryAdjust() {
return industryAdjust;
}
public void setIndustryAdjust(Double industryAdjust) {
this.industryAdjust = industryAdjust;
}
@OneToMany(fetch = FetchType.LAZY, mappedBy = "modelRound")
public List<MsModelMarketAdjust> getModelMarketAdjusts() {
return modelMarketAdjusts;
}
public void setModelMarketAdjusts(List<MsModelMarketAdjust> modelMarketAdjusts) {
this.modelMarketAdjusts = modelMarketAdjusts;
}
@OneToMany(fetch = FetchType.LAZY, mappedBy = "modelRound")
public List<MsModelIndustryAdjust> getModelIndustryAdjusts() {
return modelIndustryAdjusts;
}
public void setModelIndustryAdjusts(List<MsModelIndustryAdjust> modelIndustryAdjusts) {
this.modelIndustryAdjusts = modelIndustryAdjusts;
}
public Double getMarketAdjust() {
return marketAdjust;
}
public void setMarketAdjust(Double marketAdjust) {
this.marketAdjust = marketAdjust;
}
public Integer getModelId() {
return modelId;
}
public void setModelId(Integer modelId) {
this.modelId = modelId;
}
}
@Entity
@Table(name="sd_model_market_adjust_ms")
@JsonIgnoreProperties(ignoreUnknown=true)
public class MsModelMarketAdjust extends IdEntity {
private static final long serialVersionUID = 5224441947071542271L;
private MsModelMarket modelMarket;
private Double marketAdjust;
private MsModelRound modelRound;
private Integer modelId;
public Integer getModelId() {
return modelId;
}
public void setModelId(Integer modelId) {
this.modelId = modelId;
}
@OneToOne(fetch=FetchType.LAZY)
@JoinColumn(name="modelMarketId")
public MsModelMarket getModelMarket() {
return modelMarket;
}
public void setModelMarket(MsModelMarket modelMarket) {
this.modelMarket = modelMarket;
}
public Double getMarketAdjust() {
return marketAdjust;
}
public void setMarketAdjust(Double marketAdjust) {
this.marketAdjust = marketAdjust;
}
@OneToOne(fetch=FetchType.LAZY)
@JoinColumn(name="modelRoundId")
@JsonIgnore
public MsModelRound getModelRound() {
return modelRound;
}
public void setModelRound(MsModelRound modelRound) {
this.modelRound = modelRound;
}