Okay, just incase this isn't clear enough for others and to make sure
I understand, I created a new table called HiValue and a PK field
named NextValue and seeded it with a default value of 0. In my hbm
file for OrderHeader I now have:
<generator class="hilo" >
<param name="table">HiValue</param>
<param name="column">NextValue</param>
<!--<param name="max_lo">100</param>-->
</generator>
The max_lo property, is that just to indicate a max value?
Also, all the tables use an ID field, at least in the examples I'm
following, so am I supposed to use a seperate HiValue table for each
table I have? Is that the proper way to ensure proper sequencing of
ID numbers? So, for instance, I have two tables: OrderHeader and
OrderItem; is it best practice to create, say, OrderHeader_HiValue and
OrderItem_HiValue tables and seed them how I see fit (e.g. 0, 100,
etc) for a starting ID value?
btw, thanks for the link...
> >
http://groups.google.com/group/nhusers?hl=en.- Hide quoted text -
>
> - Show quoted text -