|
Hibernate example source code file (Item.hbm.xml)
The Hibernate Item.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"> <!-- This mapping demonstrates the use of interface proxies, and fields which are initialized by an interceptor. --> <hibernate-mapping package="org.hibernate.test.interfaceproxy"> <class name="ItemImpl" table="Items" proxy="Item"> <id name="id"> <generator class="native"/> </id> <property name="name" not-null="true"/> <joined-subclass name="DocumentImpl" table="Documents" proxy="Document"> <key column="id"/> <property name="content" not-null="true"/> <!-- managed by DocumentInterceptor --> <property name="modified" not-null="true"/> <property name="created" not-null="true"/> <joined-subclass name="SecureDocumentImpl" table="SecureDocuments" proxy="SecureDocument"> <key column="documentId"/> <property name="permissionBits" not-null="true"/> <property name="owner" not-null="true"/> </joined-subclass> </joined-subclass> <joined-subclass name="FolderImpl" table="Folders" proxy="Folder"> <key column="id"/> <many-to-one name="parent" class="FolderImpl"/> </joined-subclass> </class> </hibernate-mapping> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate Item.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.