We use the where parm after a migration from identity. It's pretty
straightforward.
The HiLo table definition is:
CREATE TABLE [dbo].[hibernate_unique_key](
[next_hi] [int] NOT NULL,
[Entity] [varchar](50) NOT NULL
) ON [PRIMARY]
GO
and an example mapping is:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping
xmlns="urn:nhibernate-mapping-2.2"
namespace="xxxx.xxxx.xxxx"
assembly="xxxx.xxxx"
default-access="field.camelcase-underscore">
<class name="Advert" table="Administration.Advert" lazy="false">
<id name="Id" column="Id" type="int" unsaved-value="0">
<generator class="hilo">
<param name="max_lo">2</param>
<param name="where">Entity='Advert'</param>
</generator>
</id>
......
</class>
</hibernate-mapping>
and there is a row in the hilo for an entity value of "Advert".
--
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.