Lords & Ladies, this hack is for Hibernate 3.3.1-GA, and solves an
error like this:<br /><br />org.hibernate.MappingException: Repeated
column in mapping for entity: org.intresting.MyClass column: HACKME_COLUMN
(should be mapped with insert="false"
update="false")<br /><br />When you use a discriminator column -
with SingleTable inheritance -, <br />like this: <br /><br /><class
name="MyClass" .... ><br />
<composite-id name="id" class="MyClassId"><br
/> . . .<br /> <key-property
name="hackmecolumn" type="short"><br
/>
<column name="HACKME_COLUMN"/><br />
</key-property> <br
/> ...<br /></composite-id><br
/> <discriminator column="HACKME_COLUMN" /><br
/>...<br /><subclass name="VeryIntrestingClass"<br
/>
discriminator-value="21" /><br /></class><br /><br
/>The hack is: change the case of <discriminator column> to
lowercase.<br /> <discriminator column="hackme_column"
/> <br /><br />- y santo remedio -