NHibernate should roll back identifiers in case of failed additions or successful deletions. Hibernate 3 has this functionality controlled by a configuration option (hibernate.use_identifer_rollback).
Was fixed with some other ports in NH2.0.0Alpha1 (before release it).
Ben Donke
April 30, 2007 at 10:43 PM
Patch against rev. 2785. Includes identifier rollback for both non-transactional as transactional updates
Ben Donke
April 15, 2007 at 12:47 AM
Resetting the identifiers should work both in non-transactional updates as in transactional updates. As I see it, this implementation won't reset identifiers when updates are done in a transaction.
NHibernate should roll back identifiers in case of failed additions or successful deletions. Hibernate 3 has this functionality controlled by a configuration option (hibernate.use_identifer_rollback).