ITeye博客

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

andy136566 · 2011-02-12 17:33 · ASIMS经历 · 企业架构 · Java · XML · Hibernate · Markdown

数据库中有字段设置long varchar

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

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

还不知道为什么

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。