-->
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: Oracle sequence
PostPosted: Mon Feb 07, 2005 5:15 am 
Beginner
Beginner

Joined: Thu Oct 14, 2004 5:07 am
Posts: 37
Location: Cambridge, UK
2.1.7


<!--
<generator class="native">
<param name="sequence">OFFENCES_SEQ</param>
</generator> -->

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



Hi I have tried to do an insert using Oracle sequences and it is not working.

Using the generator class="sequence" I get:

[junit] Caused by: net.sf.hibernate.MappingException: Dialect does not suppo
rt sequences
[junit] at net.sf.hibernate.dialect.Dialect.getSequenceNextValString(Dia
lect.java:327)
[junit] at net.sf.hibernate.id.SequenceGenerator.configure(SequenceGener
ator.java:57)
[junit] at net.sf.hibernate.id.IdentifierGeneratorFactory.create(Identif
ierGeneratorFactory.java:78)

I have tried using OracleDialect and Oracle9Dialect...

Has anyone else come across this?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 07, 2005 5:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
clearly, your Dialect is *not* set correctly. Check your log.


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.