1.
allVehicle = session.find("from VehicleProperty vp");在VehicleProperty查询时报错:
now row with the given identifier exists:1,of class:com.jpcf.db.model.Cltype2.
Session session = HibernateUtil.currentSession();
tx = session.beginTransaction();
Cltype ct=(Cltype)session.load(Cltype.class,new Integer(vpform.getClType_id()));
vp.setCltype(ct);
session.save(vp);
tx.commit();新增数据时报错:
net.sf.hibernate.MappingException:No persister for:java.lang.Integer怎么解决啊?