-->
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: best way to globally change the default max_lo ?
PostPosted: Thu Jan 22, 2004 1:26 pm 
Newbie

Joined: Thu Jan 22, 2004 1:20 pm
Posts: 1
Hello,

I am using the hilo generator to generate unique identifiers. I'm using it with the default MAX_LO, i.e. 32,767 (Short.MAX_VALUE).

So, when I restart my application, I am throwing away up to 32,767 identifiers. I don't want to waste so many identifiers. To solve it, I was going to change the max_lo value in the mapping files for each of the persistent classes using something like this:

<generator class="hilo">
<param name="max_lo">10</param>
</generator>

But I wonder if there's a better way to change the default max_lo (maybe one that requires to change the value in only one place, instead of changing each one of the mapping files).

Is there a better way?

Thanks in advance.

Xavi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 22, 2004 1:29 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I don't know one.

_________________
Emmanuel


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.