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]