|
Hibernate example source code file (orm3.xml)
The Hibernate orm3.xml source code<?xml version="1.0" encoding="UTF-8"?> <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_2_0.xsd" version="2.0"> <entity class="org.hibernate.ejb.test.xml.sequences.Employee" metadata-complete="false" access="FIELD"> <attributes> <id name="id"/> <basic name="name"/> <embedded name="homeAddress"> <attribute-override name="street"> <column name="home_street"/> </attribute-override> <attribute-override name="city"> <column name="home_city"/> </attribute-override> <attribute-override name="state"> <column name="home_state"/> </attribute-override> <attribute-override name="zip"> <column name="home_zip"/> </attribute-override> </embedded> <embedded name="mailAddress"> <attribute-override name="street"> <column name="mail_street"/> </attribute-override> <attribute-override name="city"> <column name="mail_city"/> </attribute-override> <attribute-override name="state"> <column name="mail_state"/> </attribute-override> <attribute-override name="zip"> <column name="mail_zip"/> </attribute-override> </embedded> </attributes> </entity> <embeddable class="org.hibernate.ejb.test.xml.sequences.Address"> <attributes> <basic name="street"/> <basic name="city"/> <basic name="state"/> <basic name="zip"/> </attributes> </embeddable> </entity-mappings> Other Hibernate examples (source code examples)Here is a short list of links related to this Hibernate orm3.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.