我的數(shù)據(jù)庫(kù)是sqlserver 連接到 保存數(shù)據(jù) 為null
insert?
? ? into
? ? ? ? product
? ? ? ? (pname, price)?
? ? values
? ? ? ? (?, ?)
Hibernate:?
? ? insert?
? ? into
? ? ? ? product
? ? ? ? (pname, price)?
? ? values
? ? ? ? (?, ?)
在數(shù)據(jù)庫(kù)插入null
2017-03-14
查看一下,Product.hbm.xml中配置的name與實(shí)體類中的屬性名稱是否對(duì)應(yīng)(要一樣)。