2015年4月9日 星期四

說明org.hibernate.HibernateException: Wrong column type Found: int2, expected: int4

org.hibernate.HibernateException: Wrong column type Found: int2, expected: int4 原因: entity中的變數宣告為int,但DB Table中確是用smailint宣告 解法: entity中用short宣告,或Table宣告成int. 總之要讓兩者一致

沒有留言:

張貼留言

Related Posts Plugin for WordPress, Blogger...