nhibernate/nhibernate-core — pull request #27 by obbe80 (2011-11-27 16:25:07+00:00)
Title: NH-2953 Update the SequenceStyleGenerator

This series of commits updates the SequenceStyleGenerator to match the current state of Hibernate, except for parts that rely of major code elements not already present in NHibernate.

Review hint: "apply" the first four patches, which reorders code without functional changes. Then the remaining diff should be easier to handle.

Commit summary, oldest commit first:
* First add some class comments and convert some properties to "automatic".
* Then follows three commits that reorders code with no functional changes, for easier comparison to Hibernate.
* If pooled optimization is chosen, but dialect doesn't support such sequences, use table instead of hilo.
* New configuration setting "id.optimizer.pooled.prefer_lo", which needs to be forwared through a few classes.
* Fix previously completely non-working TableStructure.
* Introduce shortname "enhanced-sequence" (same as in Hibernate) for use in mappings.

The remaining commits are tests and minor tweaks.