When using a *.hbm.xml file with a class element declaration that specifies a subselect and a comment element like below, the comment is ignored.
<hibernate-mapping package='org.hibernate.test.hbm'>
<class name='Foo' subselect='from foo'>
<comment>This is class 'Foo' with property 'bar'.</comment>
<id name='id' type='int'>
<generator class='sequence'/>
</id>
<property name='bar' type='string'/>
</class>
</hibernate-mapping>
A test project demonstrating the issue is attached. |