|
Hibernate example source code file (Department.hbm.xml)
The Hibernate Department.hbm.xml source code<?xml version="1.0"?> <!DOCTYPE hibernate-mapping SYSTEM "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd" > <hibernate-mapping package="org.hibernate.test.filter"> <class name="Department" table="DEPARTMENT"> <id name="id" column="DEPT_ID" type="long"> <generator class="native"/> </id> <property name="name" column="REG" type="string"/> <set name="salespersons" cascade="save-update" inverse="true"> <key column="DEPT_ID"/> <one-to-many class="Salesperson"/> <filter name="seniorSalespersons"> </set> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Department.hbm.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 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.