为了账号安全,请及时绑定邮箱和手机立即绑定

不能添加數據到表中,報錯java.lang.ClassCastException

不能添加數據到表中,報錯java.lang.ClassCastException

慕少9057559 2016-06-04 14:59:07
                                Students s1 = new Students("S0000001","张三丰","男",new Date(),"武当山"); Students s2 = new Students("S0000002","郭靖","男",new Date(),"桃花岛"); Students s3 = new Students("S0000003","黄蓉","女",new Date(),"桃花岛"); session.save(s1);                                session.save(s2); session.save(s3); tran.commit();                                sessionFactory.close();什麼回事啊?誰能解答一下。
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1150 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信