-->
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: What is the strategy for changing ID Generators on live data
PostPosted: Wed Apr 16, 2008 12:18 pm 
Newbie

Joined: Wed Apr 16, 2008 12:13 pm
Posts: 2
Hello. I have an application in production that was my first live fire use of hibernate. I did not read enough about id generators at the time and used INCREMENT. Now I need to enable a secondary process to modify these tables and so need to move away from INCREMENT.

What is a good strategy for changing the id generator on an existing database and it's data?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 16, 2008 12:22 pm 
Newbie

Joined: Wed Apr 16, 2008 12:13 pm
Posts: 2
I forgot to mention that I am using Postgres for development and MySQL in production.

Since I am already using INCREMENT would switching to HILO and making the lower boundary above my current max id be viable? Are the any major gotchas with this?


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.