Hibernate - 使用join时“找不到属性时找不到类”

时间:2013-07-26 16:56:26

标签: hibernate

我在我的实体映射中使用<join>,并且在查找属性时Hibernate不断抛出错误类TechnologyCatalogSummary:version


Hibernate Mapping

<class entity-name="Summary" table="CATALOG" mutable="true" name="Catalog">
    <id name="CatId" column="cat_id"/>
    <property name="Name" column="Cat_Name" />
    <property name="version" column="version" />
    <property name="edition" column="edition" length="255" />
    <property name="platform" column="platform" length="50" />

    <join table="v_techClsfnLvl">  
        <key column="cat_id"/>  
        <property name="level" column="Level"/>
    </join>

</class>

例外: 引起:org.hibernate.MappingException:查找属性时找不到类摘要:level

但是,我的类目录实际上具有属性'level',我不明白为什么异常说实体名称上没有找到类('Summary')

感谢您的时间!

0 个答案:

没有答案