hibernate映射合成模式的问题

Principal是一个抽象类,其子类有:GroupModel、UserModel,GroupModel中可以包含一个或者多个Principal,一下是我的映射文件:

=================================================================

"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

polymorphism="explicit">



not-null="true" type="string" unique="true" />
type="timestamp" />
type="text" />
lazy="false">




lazy="proxy" name="group" />





extends="xhlh.ac.Principal">






extends="xhlh.ac.Principal">

not-null="true" type="string" />
not-null="true" type="string" />
name="groupAdmin" type="boolean" />


=================================================================

我用new SchemaExport(config).create(true, true);导出表时抛出异常:
Exception in thread "main" org.hibernate.MappingException: An association from the table principal refers to an unmapped class: GroupModel
at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1252)
at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1260)
at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1260)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1170)
at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:756)
at org.hibernate.tool.hbm2ddl.SchemaExport.(SchemaExport.java:93)
at org.hibernate.tool.hbm2ddl.SchemaExport.(SchemaExport.java:61)
at xhlh.ExportDB.main(ExportDB.java:10)
期待各位前辈帮忙解决,或者提出更好的设计方法!
[该贴被zidom于2009-03-03 15:38修改过]
[该贴被zidom于2009-03-03 15:39修改过]
[该贴被zidom于2009-03-03 15:58修改过]
[该贴被admin于2009-03-04 11:23修改过]

> An association from the table principal refers to an unmapped class: GroupModel
看错误调试是编程基本功,这里意思是GroupModel这个类没有进行映射配置。