-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Missing sequence when this sequence exists.
PostPosted: Thu Aug 16, 2012 5:11 am 
Newbie

Joined: Thu Aug 16, 2012 4:41 am
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.