-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate 5.0.2.Final and generator class=sequence
PostPosted: Tue Oct 06, 2015 5:24 pm 
Newbie

Joined: Tue Oct 06, 2015 5:22 pm
Posts: 2
Location: Kyiv, Ukraine
Hello,

I have following mapping:

Code:
    <id name="id" type="java.lang.Long" column="id">
        <generator class="sequence">
            <param name="sequence">tracksdata_seq</param>
        </generator>
    </id>


Everything went fine when I worked with it in Hibernate 4.2. Now I am migrating to Hibernate 5 and facing following issue:

Quote:
2015-10-06 19:49:50 DEBUG SQL:92 - select nextval ('hibernate_sequence')
2015-10-06 19:49:50 DEBUG SqlExceptionHelper:122 - could not extract ResultSet [n/a]
org.postgresql.util.PSQLException: ERROR: relation "hibernate_sequence" does not exist


Why?

P.S. PostgreSQL 9.4.4, Hibernate 5.0.2.Final.

Thank you.


Last edited by maksim2020 on Tue Oct 13, 2015 4:00 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Hibernate 5.0.2.Final and generator class=sequence
PostPosted: Tue Oct 13, 2015 3:59 pm 
Newbie

Joined: Tue Oct 06, 2015 5:22 pm
Posts: 2
Location: Kyiv, Ukraine
Any update? This is critical and seems like it very similar to https://hibernate.atlassian.net/browse/HHH-10166.

Thanks.


Top
 Profile  
 
 Post subject: Re: Hibernate 5.0.2.Final and generator class=sequence
PostPosted: Mon Dec 14, 2015 11:00 am 
Hello,

I have the same error as you.
On Oracle11g, Hibernate 5.0.5.Final and my sequence is in a schema.

But works fine 3.6.1.Final (old project => need update)

Do you have a solution ??

Thanks

Sorry for my english....


Top
  
 
 Post subject: Re: Hibernate 5.0.2.Final and generator class=sequence
PostPosted: Wed Dec 16, 2015 3:45 am 
Hello,

do you have a solution ?

I'm on Oracle11g with hibernate5.0.5 and i have the same bug.

Hibernate don't use my sequence name. Only "hibernate_sequence".

Very critical for me to.

Thanks


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