-->
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.  [ 2 posts ] 
Author Message
 Post subject: Dialect not support sequence
PostPosted: Wed Jul 26, 2006 9:18 am 
Newbie

Joined: Tue Jul 25, 2006 8:59 am
Posts: 18
Hello ,

I have a problem with Dialect for Oracle 9
<propertyname="dialect">org.hibernate.dialect.Oracle9Dialect</property>

this is the error :

net.sf.hibernate.MappingException: Dialect does not support sequences
at net.sf.hibernate.dialect.Dialect.getSequenceNextValString(Dialect.java:319)
at net.sf.hibernate.id.SequenceGenerator.configure(SequenceGenerator.java:62)


<id name="idBl" type="java.lang.Long" column="ID_BL">

this is my mapping file

<generator class="sequence">
<param name="sequence">SEQ_ID_BON_LIVRAISON</param>
</generator>

Thnks for your help !


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 26, 2006 1:35 pm 
Beginner
Beginner

Joined: Wed Sep 21, 2005 11:52 am
Posts: 43
In my hibernate.cfg.xml file I define the dialect this way:

Code:
<property name="hibernate.dialect">org.hibernate.dialect.DB2Dialect</property>


If that doesn't work you could try using the "native" generator, which is supposed to pick the appropriate strategy for your database.

Don't forget to rate.


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

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.