我來說一下我的錯誤,3個,第一次個我沒有把Hibernate.cfg.xml里面的created換成update,第二個是我的創建的照片導入的包不對,應該是import java.sql.Blob;我導入錯誤了,并且生成Student.hbm.xml也是錯誤的,第三個是主鍵錯誤,報ERROR: Duplicate entry '1' for key 'PRIMARY'錯誤,包主鍵改了就可以了。
2016-08-08
https://github.com/zhanghao1225903428/hibernation-001
2016-08-08
maven <hibernate-mapping package="entity">
2016-08-07
修改了一天總算搞定了,雖然很多不懂,總算可以繼續往下看了
我的源代碼
https://github.com/FirePoplar/Java-Hibernate_001
hibernate 4.2.4 final
junit 4.10
mysql 5.1.7
僅供大家參考
我的源代碼
https://github.com/FirePoplar/Java-Hibernate_001
hibernate 4.2.4 final
junit 4.10
mysql 5.1.7
僅供大家參考
2016-08-06