Posted: Fri Mar 20, 2009 5:49 am Post subject: urgent :-regarding Mapping exception and ID generator
Dear all
i m using Hibernate 3.2.5.
i have got all mappings correct , i mean atleast it doesnt give me incorrect mapping error. I m facing problem with following exception
.
.
.
.
.
INFO: Default entity-mode: pojo
INFO: Named query checking : enabled
INFO: building session factory
INFO: Exception--->org.hibernate.MappingException: could not instantiate id generator
im a novice to hibernate
Please help me in correcting above Exception
Following is the xml which when added gives me the exception
<hibernate-mapping>
<class name="clientStock" table="clientstock_tbl">
<id name="productId" type="int" column="productId" >
<generator class="foreign"/>
</id>
<property name="reorderLevel">
<column name="reorderLevel"/>
</property>
<property name="quantity">
<column name="quantity"/>
</property>
</class>
</hibernate-mapping>
Regards
Vikram
|