-->
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: Problems with <generator class>
PostPosted: Mon May 08, 2006 11:40 am 
Newbie

Joined: Fri Jan 13, 2006 10:20 am
Posts: 7
I'm trying to use <generator class> tag set to 'hilo' to create a progressive id value of some tables.
In particular I have two table which id fields are managed by hilo.
The table to manage the keys is not the defalut table, but a custom table named 'Tabella'.
When the table 'Tabella' contains only one column, (and so I manage a progressive id of a single Table), I have not any problems: all run right.
When I put into table 'Tabella' more of one field to manage the id field of more Tables I have a problem.
In particular the problem is that the value generated is not a progressive number into a field of the Tabella table but it is a very big number.
Someone can help me??

The pice of xml code that I insert in my xml file is following:

<id name="Id" type="Int32" column="Id" access="field.pascalcase-m-underscore">
<generator class="hilo">
<param name="table">Tabella</param>
<param name="column">campo</param>
</generator>
</id>

Hi, Gianp.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 12, 2006 8:24 am 
Newbie

Joined: Fri Jan 13, 2006 10:20 am
Posts: 7
I solved the problem after inserting in xml file the next tag
<param name="max_lo">0</param>


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.