Code:
null id in com.blog.domain.Comment entry (don't flush the Session after an exception occurs)
hi
I need your help.thanks.
I have a application in remote server.
some time,my website happened an exception as following:
Code:
null id in com.blog.domain.Comment entry (don't flush the Session after an exception occurs)
I don't know how to resolve it.
my mapping config file:
Code:
<class name="com.blog.domain.Comment" table="comment" catalog="jiangzubing">
<id name="id" type="java.lang.Integer">
<column name="Id" />
<generator class="native" />
</id>
<property name="articleid" type="java.lang.String">
<column name="articleid" length="20" not-null="true" />
</property>
<property name="articletitle" type="java.lang.String">
<column name="articletitle" length="100" not-null="true" />
</property>
<property name="content" type="java.lang.String">
<column name="content" length="2000" not-null="true" />
</property>
<property name="user" type="java.lang.String">
<column name="user" length="20" not-null="true" />
</property>
<property name="time" type="java.lang.String">
<column name="time" length="20" not-null="true" />
</property>
<property name="isdelete" type="java.lang.Integer">
<column name="isdelete" not-null="true" />
</property>
</class>
I used mysql database.and I never operation ID.
can you help me ?
if you understand my meaning and have a good idea,pls send it to
me.ok?thanks a lot.
my email address:jiangzubing@yahoo.cn
MSN:xiaoliu52013@163.com
[/code]