|
Hibernate example source code file (mappings.hbm.xml)
The Hibernate mappings.hbm.xml source code<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="org.hibernate.envers.test.integration.entityNames.oneToManyAudited.Person" entity-name="Personaje"> <id name="id" column="ID_PERSON" type="long" > <generator class="native" /> </id> <property name="name" type="string" length="255" column="NAME" not-null="true" /> <property name="age" type="int" column="AGE"/> </class> <class name="org.hibernate.envers.test.integration.entityNames.oneToManyAudited.Car" > <id name="id" column="ID_CAR" type="long"> <generator class="native" /> </id> <property name="number" type="int" column="int" not-null="true" /> <bag name="owners" cascade="save-update"> <key column="ID_GARAGE" not-null="true" update="false" /> <one-to-many entity-name="Personaje"/> </bag> </class> <!-- Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate mappings.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.