-->
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.  [ 3 posts ] 
Author Message
 Post subject: hibernate_sequence
PostPosted: Wed Jun 01, 2005 11:26 am 
Beginner
Beginner

Joined: Thu Apr 28, 2005 6:16 am
Posts: 20
Hi,

I'm experiencing problems with id generation. I'm using "sequence" (http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-declaration-id-generator), but when I save() a new object of the class, Hibernate tries to use hibernate_sequence.

Any ideas why?
Thanks,
merlyn

Outputs:
Code:
Hibernate: select hibernate_sequence.nextval from dual


Mapping file:
Code:
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
...
<class ...>
<id ...>
        <generator class="sequence">
            <param name="sequence">ARSQUSUA</param>
        </generator>
</id>
...


Hibernate version: 3.0.3


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 08, 2005 8:46 am 
Beginner
Beginner

Joined: Thu Apr 28, 2005 6:16 am
Posts: 20
As said in similar posts. I changed nothing and the problem resolved itself after a few restarts. :(


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 08, 2005 8:50 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Magic!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.