-->
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.  [ 1 post ] 
Author Message
 Post subject: shards: ShardedUUIDGenerator column length
PostPosted: Sun Aug 31, 2008 4:22 am 
Newbie

Joined: Sun Aug 31, 2008 4:00 am
Posts: 1
I'm having a problem setting up an id with ShardedUUIDGenerator. For a mapping like this

Code:
       
<id name="id" type="big_integer">
            <generator class="org.hibernate.shards.id.ShardedUUIDGenerator">
            </generator>
        </id>


and the id in the code being:

Code:
    private BigInteger id;


I get a MySQL id column that is decimal(19,2), which isn't big enough to hold the generated keys, so I need alter the column. Setting the length attribute on the mapping file didn't make any difference. Is there something else I should be doing?[/code]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.