Hibernate 将继承的hbm映射为@mappedclass注释
我正在使用hbm文件(保留没有注释的纯pojo类),我想使用一个带有技术信息(id、创建/修改日期和用户)的超级类作为@mappedclass注释Hibernate 将继承的hbm映射为@mappedclass注释,hibernate,inheritance,hbm,Hibernate,Inheritance,Hbm,我正在使用hbm文件(保留没有注释的纯pojo类),我想使用一个带有技术信息(id、创建/修改日期和用户)的超级类作为@mappedclass注释 <hibernate-mapping> <class name="AbstractEntity" abstract="true"> <id name="entityId"></id> <!-- Id overridé dans les classes filles -->
<hibernate-mapping>
<class name="AbstractEntity" abstract="true">
<id name="entityId"></id>
<!-- Id overridé dans les classes filles -->
<property name="userCreation" type="string">
<column name="USR_LOG_I" length="20" not-null="true" />
</property>
<property name="dateCreation" type="timestamp">
<column name="DTE_LOG_I" length="26" not-null="true" />
</property>
<property name="userModification" type="string">
<column name="USR_LOG_U" length="20" not-null="true" />
</property>
<property name="dateModification" type="timestamp">
<column name="DTE_LOG_U" length="26" not-null="true" />
</property>
<property name="audit" type="string">
<column name="AUDIT" length="10" />
</property>
</class>
如何在子对象中声明抽象继承?有可能吗
hibernate-mapping>
<class name="FilleEntity" table="MA_TABLE">.......
hibernate映射>
.......
谢谢你的帮助 也许这就是你想要的:
<class name="FilleEntity" table="MA_TABLE">
<meta attribute="extends">AbstractEntity</meta>
抽象实体
也许这就是你要找的:
<class name="FilleEntity" table="MA_TABLE">
<meta attribute="extends">AbstractEntity</meta>
抽象实体