I am trying to include some comments in the generated SQL tables using Hibernate.
Comments for tables and columns are properly generated, except in the case of tables declared with union-subclass.
In the example below, the comment for in the "table of fathers" is not generated. Any ideas what I am doing wrong?
ionathan
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="interfaces" default-cascade="all">
<class name="interfaces.IParent" abstract="true" lazy="false">
<comment>
Parent is someone with a name and an id... (This is
generated)
</comment>
<id column="ID" name="ID">
<generator class="increment" />
</id>
<property name="name">
<column name="name">
<comment>Parental name (generated)</comment>
</column>
</property>
</class>
<union-subclass name="interfaces.Father"
extends="interfaces.IParent" table="Table_fathers">
<!-- Is this the right place for the comment?-->
<comment>
Here comes the comment for the fathers' table (NOT
GENERATED)
</comment>
<property name="fatherP">
<column name="fatherp">
<comment>
A custom property of the father (Comment
generated)
</comment>
</column>
</property>
</union-subclass>
</hibernate-mapping>