|
Hibernate example source code file (Componentizable.hbm.xml)
The Hibernate Componentizable.hbm.xml source code<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <hibernate-mapping default-lazy="false"> <class name="org.hibernate.test.legacy.Componentizable"> <id name="id"> <generator class="native"/> </id> <property name="nickName"/> <component name="component" access="property" class="org.hibernate.test.legacy.Component"> <property name="name"/> <component name="subComponent" class="org.hibernate.test.legacy.SubComponent"> <property name="subName"/> <property name="subName1"/> </component> </component> </class> <sql-query name="queryComponentWithOtherColumn"> <return class="org.hibernate.test.legacy.Componentizable"> <return-property name="nickName" column="n2"/> <return-property name="component.subComponent.subName"> <return-column name="otherSubName"/> </return-property> <return-property name="component.subComponent.subName1"> <return-column name="subName1"/> </return-property> <return-property name="component.name"> <return-column name="name"/> </return-property> </return> select id, nickName as n2, name, subName as otherSubName, subName1 from Componentizable </sql-query> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Componentizable.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.