-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: WARN JDBCExceptionReporter:71-SQL Error:-22,SQLState: S0002
PostPosted: Tue Jun 27, 2006 1:05 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.