-->
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.  [ 5 posts ] 
Author Message
 Post subject: 3.5-final fail on GenerationType.TABLE
PostPosted: Thu Apr 01, 2010 10:44 am 
Newbie

Joined: Thu Apr 01, 2010 10:34 am
Posts: 3
I user GenerationType.TABLE on id @GeneratedValue,
@Id
@TableGenerator(

name = "ID_GENERATOR",

table = "ID_GEN",

pkColumnName = "GEN_NAME",

pkColumnValue = "User",

valueColumnName = "GEN_VALUE",

initialValue = 1
)
@GeneratedValue(strategy = GenerationType.TABLE, generator = "ID_GENERATOR")
private Long id;
I work fine with 3.3.2GA, but when I upgrade to 3.5-final.
I can get Id correct,but It can't update "ID_GEN" correct .so when I shutdown my app and run again ,I will get same id. my db is oralce 10g


Top
 Profile  
 
 Post subject: Re: 3.5-final fail on GenerationType.TABLE
PostPosted: Thu Apr 01, 2010 10:50 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
I already noticed this bug to Hibernate last friday, see
[url]
http://opensource.atlassian.com/project ... e/HHH-5042[/url]

I wrote also a personal email to Steve Ebersole and Emmanuel Bernard but unfortunately nobody gave me a feedback so far. In HHH-5042 you can find a patch for this bug.


Top
 Profile  
 
 Post subject: Re: 3.5-final fail on GenerationType.TABLE
PostPosted: Thu Apr 01, 2010 10:25 pm 
Newbie

Joined: Thu Apr 01, 2010 10:34 am
Posts: 3
I've try your patch ,it can work,thank you


Top
 Profile  
 
 Post subject: Re: 3.5-final fail on GenerationType.TABLE
PostPosted: Fri Apr 02, 2010 1:58 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Quote:
I've try your patch ,it can work,thank you


N.B.: the patch itself doesn't repair the wrong values in HIBERNATE_SEQUENCES.SEQUENCE_NEXT_HI_VALUE
you have now due the bug, it only assures that the generator is again working correctly.
The wrong values in HIBERNATE_SEQUENCES.SEQUENCE_NEXT_HI_VALUE you have now due the bug,
must be repaired/corrected manually.


Top
 Profile  
 
 Post subject: Re: 3.5-final fail on GenerationType.TABLE
PostPosted: Fri Apr 02, 2010 6:39 am 
Newbie

Joined: Thu Apr 01, 2010 10:34 am
Posts: 3
pb00067 wrote:
Quote:
I've try your patch ,it can work,thank you


N.B.: the patch itself doesn't repair the wrong values in HIBERNATE_SEQUENCES.SEQUENCE_NEXT_HI_VALUE
you have now due the bug, it only assures that the generator is again working correctly.
The wrong values in HIBERNATE_SEQUENCES.SEQUENCE_NEXT_HI_VALUE you have now due the bug,
must be repaired/corrected manually.

I delete all data and recreate then


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