Joined: Fri Apr 28, 2006 12:07 pm Posts: 14
|
Hello! I have a this error "WARN JDBCExceptionReporter:71-SQL Error:-22,SQLState: S0002" when I try to insert in a table with Hibernate. My file "hbm.xml" is this:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="configuracion.LogEvents" table="LOGEVENTS">
<id name="event" column="LOGEVENTS_ID">
<generator class="native"/>
</id>
<property name="description"/>
<property name="action"/>
</class>
</hibernate-mapping>
and the id name in the clase LogEvents is a String. Is this the error? must it be defined as a Long or other thing?
thank you very much for your time
mjb
|
|