Joined: Sat Sep 03, 2005 4:10 am Posts: 9
|
Hibernate version:
1.2GA (but i have noticed it in previous versions)
suppose i have a single hbm
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="A" lazy="false">
<cache usage="nonstrict-read-write"/>
<id name="Id" type="Int32">
<generator class="native" />
</id>
<property name="Description" length="50" index="" />
<joined-subclass name="B" lazy="false">
<key column="id"/>
</joined-subclass>
</class>
</hibernate-mapping>
everything works fine. now suppose i have two hbm files:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="A" lazy="false">
<cache usage="nonstrict-read-write"/>
<id name="Id" type="Int32">
<generator class="native" />
</id>
<property name="Description" length="50" index="" />
</class>
</hibernate-mapping>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<joined-subclass name="B" lazy="false" extends="A">
<key column="id"/>
</joined-subclass>
</hibernate-mapping>
i get a 'cannot map class A in 2ndfile.hbm.xml'
i can't see that i'm doing anything obviously wrong. are there any gotchas here?
thanks,
mike.
|
|