I'm getting this error when trying to insert data to a table:
Code:
WARNING: SQL Error: 0, SQLState: 42P01
20/09/2005 11:24:22 net.sf.hibernate.util.JDBCExceptionReporter logExceptions
SEVERE: ERROR: relation "quant.concurso" does not exist
The problem is that when I retrieve or delete data from this very same table it works perfectly! So I believe its hbm.xml file is correct, otherwise retrieving and deleting data wouldn't be possible, right? But whenever I try to insert data to the same table, using the same persistent class I get the above error!!! :( this is nuts!!
"quant.concurso" is the scheme + table name, here's its xml
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="br.gov.embrapa.quantPessoal.po.ConcursoPO" table="quant.concurso" >
<id name="codigo" unsaved-value="-1" type="int">
<column name="CODIGO" not-null="true" />
<generator class="increment"/>
</id>
<property name="descricao" type="java.lang.String">
<column name="descricao" length="30" />
</property>
</class>
</hibernate-mapping>
Any info is much appreciated. thanks!