`
andy136566
  • 浏览: 285401 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

org.hibernate.exception.ConstraintViolationException: could not insert: [com.tes

阅读更多

数据库中有字段设置long varchar

用hibernate工具自动生成news.hbm.xml时,该字段的属性为type="java.lang.String"

改成type="string"之后错误消失

还不知道为什么

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics