|
Hibernate example source code file (EntityWithBasicCollections.hbm.xml)
The Hibernate EntityWithBasicCollections.hbm.xml source code<?xml version="1.0"?> <hibernate-mapping xmlns="http://www.hibernate.org/xsd/hibernate-mapping" package="org.hibernate.metamodel.binding" > <class name="EntityWithBasicCollections"> <id name="id"> <generator class="increment"/> </id> <property name="name"/> <bag name="theBag"> <key column="owner_id"/> <element column="bag_stuff" type="string"/> </bag> <set name="theSet"> <key column="pid"/> <element column="set_stuff" type="string"/> </set> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate EntityWithBasicCollections.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.