farzad wrote:
Remove the class attribute from composite-id tag and see if it works.
Farzad-
i tried with the following mapping file , but still showing the same exception.
<?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="myhibernate.Mmm" table="MESSAGE">
<id name="msg" type="string" column="MESSAGE">
<generator class="assigned"/>
</id>
<property name="id" type="int" column="MESSAGE_ID"/>
</class>
</hibernate-mapping>
please tell me the solution.