|
Hibernate example source code file (Transaction.hbm.xml)
The Hibernate Transaction.hbm.xml source code<?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <!-- Demonstrates the use of a CompositeUserType. --> <hibernate-mapping package="org.hibernate.test.cut"> <class name="Transaction" table="Trnsctn"> <id name="id"> <generator class="native"/> </id> <property name="description" length="100" not-null="true"/> <property name="value" type="money"> <column name="amount" not-null="true"/> <column name="currency" not-null="true"/> </property> </class> <class name="MutualFund" table="MutualFund"> <id name="id"> <generator class="native"/> </id> <property name="holdings" type="money"> <column name="amount_millions" not-null="true" read="amount_millions * 1000000.0" write="? / 1000000.0"/> <column name="currency" not-null="true"/> </property> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Transaction.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.