I am developing an application with Hibernate and I get an Exception when I connect with database. The exception is:
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
My mapping file is:
<hibernate-mapping>
<class name="com.cartif.database.SetPoint" table="SetPoint">
<id name="iSetPointId" column="setpointid" type="java.lang.Integer">
<generator class="sequence">
<param name="sequence">s_setpoint</param>
</generator>
</id>
<property column="sensorType" generated="never" lazy="false" name="sSensortype" type="java.lang.String"/>
<property column="value" generated="never" lazy="false" name="dValue" type="java.lang.Double"/>
<property column="relationship" generated="never" lazy="false" name="sRelation" type="java.lang.String"/>
<property column="deviceid" generated="never" lazy="false" name="iDeviceId" type="java.lang.Integer"/>
</class>
</hibernate-mapping>
And the class with getters/setters which are not included:
public class SetPoint {
private int iSetPointId;
private String sSensorType;
private double dValue;
private String sRelationship;
private int iDeviceId;
}
I have javassist.jar included into classpath. I do not know what is the problem. Someone would help me please!!
Thanks!