Hibernate 一对多笔记
hibernate用了很久,但总是稀里糊涂,是时候总结下了,今天做了个例子,还是遇到了不少问题
?
Hibernate: insert into Person (name, age) values (?, ?)Hibernate: update Phone set person_id=? where id=?2011-10-28 14:37:55,339 ERROR org.hibernate.jdbc.AbstractBatcher.doExecuteBatch:51 - Exception executing batch: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1??
?
?
?
?