Hi,

This is my proposal to solve JIRA issue HBX-577 "hbm2java for annotation from existing inheritance mapping"

I figured out how-to do "joined-subclass" and "table-per-class-herarchy" but couldn't test it.

This solution relies on <meta> tag,  example:

<class name="Nota" mutable="false" table="NOTA"
        schema="dbo" catalog="DATA" discriminator-value="not null">
<meta attribute="class-inheritance-type">single-table-per-class-herarchy</meta>
1) Please post patches in jira ;)

2) why is a meta attribute needed in meta when you can deduce it from the Configuration ?

/max
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to