I am using hibernate 3.0 and spring 1.2.4
When i try to instantiate the Class object using the
test(which uses
JUnit) with out performing any inserts( just trying to extract the column value)
I get the following Error:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SomeNameObjectSessionFactory' defined in class path resource [some-manualtest-test.xml]: Initialization of bean failed; nested exception is org.hibernate.MappingException: could not instantiate id generator
org.hibernate.MappingException: could not instantiate id generator
I wonder why it should not be able to generate the id,The id generator code extracted from the HBM file is as follows:
<id name="Id" type="long" column="some_id">
<generator class="sequence">
<param name="sequence">some_id_seq</param>
</generator>
</id>
I would be greatly thankful if someone could tell me if there is something wrong, with respect to maybe incompatible versions of hibernate and spring or am i missing something.
Thanks,
Vijay