everyone, im using spring + hibernate building a website, but i encounterd an exception(as title) while saving pojo through hibernate.
but if i set prop "hibernate.jdbc.batch_size" to "0" , it works ok.
here is the codes :
it is really boring, i have worked for hours but still have no idea. something about RP ?Code:FriendLink friendLink = new FriendLink(); friendLink.setOperationDate(new Date()); friendLink.setStatus(new Integer(1)); getHibernateTemplate().save(friendLink);