|
Hibernate example source code file (subclassAllAuditedMappings.hbm.xml)
The Hibernate subclassAllAuditedMappings.hbm.xml source code<?xml version="1.0" encoding="WINDOWS-1251"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="org.hibernate.envers.test.integration.interfaces.hbm.allAudited.SimpleInterface" table="SIMPLES_interface" discriminator-value="SIMPLE_INTERFACE"> <id name="id" column="ID" type="long"> <generator class="native" /> </id> <discriminator column="DISCRIMINATOR" /> <property name="data" column="DATA" /> </class> <subclass name="org.hibernate.envers.test.integration.interfaces.hbm.allAudited.AuditedImplementor" extends="org.hibernate.envers.test.integration.interfaces.hbm.allAudited.SimpleInterface" discriminator-value="AUDITED_IMPLEMENTOR" > <property name="auditedImplementorData" column="IMPLEMENTOR_DATA" /> </subclass> <subclass name="org.hibernate.envers.test.integration.interfaces.hbm.allAudited.NonAuditedImplementor" extends="org.hibernate.envers.test.integration.interfaces.hbm.allAudited.SimpleInterface" discriminator-value="NON_AUDITED_IMPLEMENTOR" > <property name="nonAuditedImplementorData" column="NON_IMPLEMENTOR_DATA" /> </subclass> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate subclassAllAuditedMappings.hbm.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.