Sorry, but I'm afraid it is not a bug - look at the sentences above mentioned example in the docs :
Quote:
Likewise, the special property class accesses the discriminator value of an instance in the case of polymorphic persistence. A Java class name embedded in the where clause will be translated to its discriminator value.
In my opinion (based on the above) the usage of "class" is limited to table-per-class hierarhy strategy, at least in 2.x version of Hibernate (which NH ports)
Somebody please correct me if i'm wrong.