日期:2014-05-19 浏览次数:20680 次
org.hibernate.AssertionFailure: null id in com.alpha.bean.AnswerInfo entry (don't flush the Session after an exception occurs)
<id name="id" type="java.lang.Integer"> <column name="id" /> <generator class="native"></generator> </id> <property name="qid" type="java.lang.Integer"> <column name="qId" /> </property> <property name="content" type="java.lang.String"> <column name="content" length="5000" /> </property> <property name="adate" type="java.util.Date"> <column name="aDate" length="19" /> </property> <property name="aid" type="java.lang.Integer"> <column name="aId" /> </property> <property name="ip" type="java.lang.String"> <column name="ip" length="20" /> </property> <property name="status" type="java.lang.Integer"> <column name="status" /> </property> <property name="remark1" type="java.lang.String"> <column name="remark1" length="200" /> </property> <property name="remark2" type="java.lang.String"> <column name="remark2" length="200" /> </property> <property name="remark3" type="java.lang.String"> <column name="remark3" length="200" /> </property> <property name="remark4" type="java.lang.String"> <column name="remark4" length="200" /> </property>
CREATE TABLE `voteResuleInfo` ( `id` int(11) unsigned zerofill NOT NULL auto_increment, `voteQuestionId` int(11) default NULL, `voteSelectId` int(11) default NULL, `ip` varchar(20) default NULL, `voteDate` datetime default NULL, `remark` varchar(200) default NULL, `remark2` varchar(200) default NULL, `remark3` varchar(200) default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8