with an example hilo definition of:

CREATE TABLE [dbo].[hibernate_unique_key](
      [next_hi] [int] NOT NULL,
      [Entity] [varchar](50) NOT NULL
) ON [PRIMARY]

GO

and an example mapping...

<?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>

you need a row for each entity where the entity column value matches
the Where clause in the mapping file.

-- 
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