nhibernate/nhibernate-core — pull request #186 by ggeurts (2013-01-10 15:51:30+00:00)
Title: NH-3372: Enabled use of generated properties in combination with custom ...

...loader.

When a column is specified as generated, the AsbtractEntityPersister always generates SELECT statements to read the generated data. This does not work well when the entities are loaded with a named query by specifying a element in the entity mapping.

The solution is to fall back to reloading the entity using the named query if generated properties must be read.