|
Hibernate example source code file (ComponentContainer.hbm.xml)
The Hibernate ComponentContainer.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.hql" default-access="field"> <class name="ComponentContainer" table="HQL_COMP_CONT"> <id name="id" type="long" column="ID"> <generator class="increment" /> </id> <component name="address" class="ComponentContainer$Address"> <property name="street" type="string" column="STREET_ADDR" /> <property name="city" type="string" column="CITY_ADDR" /> <property name="state" type="string" column="STATE_ADDR" /> <component name="zip" class="ComponentContainer$Address$Zip"> <property name="code" type="int" column="ZIP_CODE_ADDR" /> <property name="plus4" type="int" column="ZIP_PLUS4_ADDR" /> </component> </component> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate ComponentContainer.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.