NHibernate Interceptor Auditing Inserted Object Id
I am using NHibernate interceptors to log information about Updates/Inserts/Deletes to my various entities. Included in the information logged is the Entity Type and the Unique Id of the entity modified. The unique Id is marked as a <generator class="identity"> in the NHibernate mapping file. The obvious problem is when logging an Insert operation using IInterceptor.OnSave() the Id of the entity has not yet been assigned. How can I obtain the Id of the inserted entity before logging the audit information? (I have looked into NHibernate Listeners PostSave event but can't get them working with