Of course you can do it. Just update the hi value in the corresponding table and create an Id for the inserts. Nhibernate will not verify the identifier in DB.
the unique key table is used only for inserts, and as soon as the object is in the database, it does not matter now where its identifier came from
source
share