Thanks all for the quick response, and thanks for the example Diego.

Oskar -> Is there a reason why you'd have seperate tables over
multiple rows in a single table? I believe the HiLo algorithm locks by
row?. Is it for performance reasons (i.e. lock by table instead)?

I assume the hbm per entity would be:

     <generator class="hilo">
                <param name="table">[THE UNIQUE TABLE NAME FOR THE
ENTITY]</param>
                <param name="column">[COLUMN NAME IN THE TABLE]</
param>
                <param name="max_lo">[MAX LOW VALUE FOR THE ENTITY]</
param>
        </generator>

Also, I'm assuming this is web farm/cluster safe? The HiLo does a
rowlock Get and Update when it gets the next value?

Thanks
-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.


Reply via email to