I\'m using NHibernate HiLo as my identity generator. I currently have a sepperate table in my database for each of my entity tables. For example I have Customer and CustomerKey
I have written about this here: http://daniel.wertheim.se/2011/03/08/nhibernate-custom-id-generator/