hibernatepe配置文件:
<class name= "com.ll.model.Ware " table= "ware " schema= "dbo " catalog= "vod ">
<id name= "wid " type= "java.lang.Integer ">
<column name= "wid " />
<generator class= "assigned " />
</id>
解决办法:
assigned是自动增长的varchar型的。
如果你的主键时自动增长的Int型,把你的assigned改成自动增长的Identity,increament等自动增长类型为int的
<class name= "com.ll.model.Ware " table= "ware " schema= "dbo " catalog= "vod ">
<id name= "wid " type= "java.lang.Integer ">
<column name= "wid " />
<generator class= "assigned " />
</id>
解决办法:
assigned是自动增长的varchar型的。
如果你的主键时自动增长的Int型,把你的assigned改成自动增长的Identity,increament等自动增长类型为int的