2
我使用hbm文件(保留純粹的pojo類沒有註釋),我想用技術信息(id,創建/修改日期和用戶)的超類作爲@mappedclass註釋。將hbm作爲@mappedclass註釋映射到繼承
<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">.......
感謝您的幫助!