farzad wrote:
What is the class code for Event and the corresponding hbm file? It looks like the type retrieved from DB and the type defined in the class for property id do not match.
Farzad-
my hbm file looks like
<?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="src.events.Event" table="EVENTS" lazy="true">
<id name="id" column="id" type="java.lang.Integer">
<generator class="native"/>
</id>
<property name="title" column="title" type="java.lang.String" />
</class>
</hibernate-mapping>