Hi all,
i've a little problem with hibernate configuration with squirrel. I'm
using last release of it (3.0.1) and when i manage hibernate configuration i
cannot start to working with it, cause my bad configuration approach.
I'm using
spring framework over hibernate with sessionFactory bean that use "org.
springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean" class.
I had add to classpath hibernate and spring jars, hibernate.cfg.xml, etc. but
when i try to connect with that configuration with "call new org.hibernate.cfg.
Configuration().configure().buildSessionFactory();", the default selection, i
receive this error:
" java.lang.RuntimeException: java.lang.reflect.
InvocationTargetException"
and if i read the error stacktrace i can see this
message:
"Caused by: org.hibernate.MappingException: An
AnnotationConfiguration instance is required to use <mapping class=..."
if i
try to select "invoke the user defined provider method below" and i try to
enter "new org.springframework.orm.hibernate3.annotation.
AnnotationSessionFactoryBean()" (i think it's a wrong command!!) i receive this
error:
"java.lang.ClassNotFoundException: new org.springframework.orm.
hibernate3.annotation.AnnotationSessionFactoryBean()"
Someone can helps me,
pelase?
Thanks to all, regards.
Matteo
|