Hibernate version: 3.1-rc1
Mapping documents:
<?xml version="1.0" encoding='UTF-8'?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
<hibernate-mapping package="nl.anwb.happi.acc.model">
<class name="Relatie" table="relatie">
<meta attribute="interface">true</meta>
<meta attribute="generated-class">nl.anwb.happi.acc.model.hibernate.HibernateRelatie</meta>
<id name="id" type="java.lang.Long">
<generator class="native" />
</id>
<joined-subclass name="Accommodatiehouder"
table="accommodatiehouder">
<meta attribute="interface">true</meta>
<meta attribute="generated-class">nl.anwb.happi.acc.model.hibernate.HibernateRelatie</meta>
<key column="id" />
</joined-subclass>
</class>
</hibernate-mapping>
Description:
When I run hbm2java I expect the following interface hierarchy:
Code:
package nl.anwb.happi.acc.model.hibernate;
interface HibernateRelatie {...}
package nl.anwb.happi.acc.model.hibernate;
interface HibernateAccommodatiehouder extends HibernateRelatie {...}
However, hbm2java generates a faulty Relatie interface instead of the Accommodatiehouder:
Code:
package nl.anwb.happi.acc.model.hibernate.HibernateRelatienl.anwb.happi.acc.model.hibernate.HibernateRelatienl.anwb.happi.acc.model.hibernate;
public interface HibernateRelatie extends nl.anwb.happi.acc.model.Relatie {...}
Is this a bug or do I use the wrong metatags?
Kind regards,
Bas