我把实体的值都set进去了怎么都放到一个对象或者一个集合里面
prpSmain.setAgreementNo("PA2014007");/*代理协议*/
prpSmain.setAgreementName("平安财险海南分公司与海口第六营业部专代协议");/*代理协议名称*/
prpSmain.setHandlerCode("346200004"); /*业务员代码*/
prpSmain.setHandlerName("李淑珠");/*业务员名称*/
prpSmain.setCounselorCode("1044140002");/*销售顾问代码*/
prpSmain.setCounselorName("陈祥星");/*销售顾问名称*/
prpSmain.setComCode("4000006");/*归属营业部代码*/
/* prpSmain.setCompanyCode("1044001007900");归属保险公司代码*/
prpSmain.setAppliCode("331907");/*投保人代码*/
prpSmain.setInsuredCode("331915");/*被保险人代码*/
prpSmain.setAppliName("叶迎民");/*投保人名称*/
prpSmain.setInsuredName("孙器碧");/*被保险人名称*/
prpBatch.setStartDate(new Date());/*保险起期*/
prpBatch.setEndDate(new Date());/*保险止期*/
feeCond.setRiskCode("0302");/*产品代码*/
feeCond.setRiskName("机动车交通事故责任强制保险");/*产品名称*/
feeCond.setInsurerCode("4000006");/*所属保险公司代码*/
feeCond.setInsurerName("中国大地财产保险股份有限公司");/*所属保险公司名称*/
feeCond.setDisRate(4.0);/*手续费比例*/
carCond.setMakeDate(new Date());/*出单日期*/
carCond.setIdentifyNumber("460200198902094900");/*被保人证件号码*/
carCond.setInsuredPhone("15500959960");/*被保人电话*/
prpSmain 就是对象呀。想放到集合里面创建个list,把一个个对象add进去
哦。我明白你的意思了,那你可以再创建一个对象,这个对象有 prpSmain 、prpBatch、feeCond、feeCond这四种对象类型的属性就可以了
你要是想把底下两个对象放到一个实体中的话,就再嵌套一个集合类,比如map
HashMap map = new HashMap();
map.put("prpSmain",prpSmain);
map.put("feeCond",feeCond);
map.put("carCond",carCond);
类似这样,然后再把Map存储到其他的集合类中
类似楼上的,如果你是想放在一个实体类中,例如实体类TestModel,可以这么做
public class TestModel{
private PrpSmain prpSmain;
private PrpBatch prpBatch;
private FeeCond feeCond;
private CarCond carCond;
public void setPrpSmain(PrpSmain prpSmain){
prpSmain = prpSmain;
}
public PrpSmain getPrpSmain(){
return prpSmain;
}
.....省略....
}
然后再把你的prpSmain 、prpBatch、feeCond、carCond对象set进去TestModel。
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settleConfirmNotice': Cannot resolve reference to bean 'settleConfirmNoticeImpl' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settleConfirmNoticeImpl' defined in file [E:\apache-tomcat-6.0.48\webapps\sales\WEB-INF\classes\spring\applicationContext-cxf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'feeManageService' defined in class path resource [spring/sales/applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'billNoService' defined in class path resource [spring/sales/applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\apache-tomcat-6.0.48\webapps\sales\WEB-INF\classes\spring\applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: cn.com.cis.acic.sales.taizhangManage.vo.CarTaizhangCondition, at table: PRPSMAIN, for columns: [org.hibernate.mapping.Column(carCond)]