Hi, I'm experiencing the next problem starting a Spring application which is using Hibernate.
Invocation of init method failed; nested exception is org.hibernate.HibernateException: Missing sequence or table: SMB_SEQ_CARPETAS
My hibernateProperties config are the following:
<property name="hibernateProperties"> <props> <prop key="hibernate.show_sql">false</prop> <prop key="hibernate.hbm2ddl.auto">validate</prop> <prop key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop> </props> </property>
And the sequence exists in database.
I've seen, looking in Internet, that this problem could be around by changing <prop key="hibernate.hbm2ddl.auto">validate</prop>
for <prop key="hibernate.hbm2ddl.auto">update</prop> or <prop key="hibernate.hbm2ddl.auto">create</prop>
But.... why?
Thanks in advance,
Jaime.
|