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=&quot;false&quot;
update=&quot;false&quot;)<br /><br />When you use a discriminator column -
with SingleTable inheritance -, <br />like this: <br /><br />&lt;class
name=&quot;MyClass&quot;&nbsp; .... &gt;<br />&nbsp;&nbsp;
&lt;composite-id name=&quot;id&quot; class=&quot;MyClassId&quot;&gt;<br
/>&nbsp;&nbsp;&nbsp;&nbsp; . . .<br />&nbsp;&nbsp;&nbsp; &lt;key-property
name=&quot;hackmecolumn&quot;&nbsp; type=&quot;short&quot;&gt;<br
/>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
&lt;column name=&quot;HACKME_COLUMN&quot;/&gt;<br />&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/key-property&gt;&nbsp; <br
/>&nbsp;&nbsp;&nbsp; ...<br />&lt;/composite-id&gt;<br
/>&nbsp;&lt;discriminator column=&quot;HACKME_COLUMN&quot; /&gt;<br
/>...<br />&lt;subclass name=&quot;VeryIntrestingClass&quot;<br
/>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
discriminator-value=&quot;21&quot; /&gt;<br />&lt;/class&gt;<br /><br
/>The hack is: change the case of &lt;discriminator column&gt; to
lowercase.<br />&nbsp;&lt;discriminator column=&quot;hackme_column&quot;
/&gt; <br /><br />- y santo remedio -