|
Hibernate example source code file (Event.hbm.xml)
The Hibernate Event.hbm.xml source code<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="org.hibernate.test.domain.Event" table="EVENTS"> <cache usage="read-write"/> <id name="id" column="EVENT_ID"> <generator class="native"/> </id> <property name="date" type="timestamp" column="EVENT_DATE"/> <property name="title"/> <many-to-one name="organizer" column="EVENT_ORGANIZER" class="org.hibernate.test.domain.Person"/> <set name="participants" table="PERSON_EVENT" lazy="false" inverse="true" cascade="lock"> <cache usage="read-write"/> <key column="EVENT_ID"/> <many-to-many column="PERSON_ID" class="org.hibernate.test.domain.Person"/> </set> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Event.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.