alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Hibernate example source code file (hbm-mapping-bindings.xjb)

This example Hibernate source code file (hbm-mapping-bindings.xjb) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Hibernate tags/keywords

mix-ins, mix-ins, utf-8, utf-8, xml, xml

The Hibernate hbm-mapping-bindings.xjb source code

<?xml version="1.0" encoding="UTF-8"?>

<jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
        jaxb:extensionBindingPrefixes="inheritance"
        version="2.1">

    <jaxb:bindings schemaLocation="../resources/org/hibernate/hibernate-mapping-4.0.xsd" node="/xsd:schema">

        <jaxb:schemaBindings>
            <jaxb:nameXmlTransform>
                <jaxb:typeName prefix="XML"/>
                <jaxb:elementName prefix="XML"/>
                <jaxb:modelGroupName prefix="XML"/>
                <jaxb:anonymousTypeName prefix="XML"/>
            </jaxb:nameXmlTransform>
        </jaxb:schemaBindings>

        <!-- Mix-ins -->
        <jaxb:bindings node="//xsd:element[@name='class']/xsd:complexType">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.EntityElement
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.JoinElementSource
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='subclass-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.SubEntityElement
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.JoinElementSource
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='joined-subclass-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.SubEntityElement
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='union-subclass-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.SubEntityElement
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='sql-insert-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.CustomSqlElement
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='sql-update-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.CustomSqlElement
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='sql-delete-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.CustomSqlElement
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='sql-delete-all-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.CustomSqlElement
        </jaxb:bindings>

        <jaxb:bindings node="//xsd:complexType[@name='property-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.SingularAttributeSource
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:element[@name='id']/xsd:complexType">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.SingularAttributeSource
        </jaxb:bindings>
<!--
        <jaxb:bindings node="//xsd:element[@name='version']/xsd:complexType">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.SingularAttributeSource
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:element[@name='timestamp']/xsd:complexType">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.SingularAttributeSource
        </jaxb:bindings>
-->
        <jaxb:bindings node="//xsd:complexType[@name='bag-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.PluralAttributeElement
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='idbag-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.PluralAttributeElement
            <inheritance:extends>org.hibernate.metamodel.source.hbm.jaxb.mapping.IdBagPluralAttributeElementAdapter
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='list-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.PluralAttributeElement
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='map-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.PluralAttributeElement
        </jaxb:bindings>
        <jaxb:bindings node="//xsd:complexType[@name='set-element']">
            <inheritance:implements>org.hibernate.metamodel.source.hbm.jaxb.mapping.PluralAttributeElement
        </jaxb:bindings>


        <jaxb:bindings node="//xsd:element[@name='class']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:element[@name='discriminator']//xsd:attribute[@name='column']">
            <jaxb:property name="columnAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:element[@name='discriminator']//xsd:attribute[@name='formula']">
            <jaxb:property name="formulaAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:element[@name='id']//xsd:attribute[@name='column']">
            <jaxb:property name="columnAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:element[@name='id']//xsd:attribute[@name='type']">
            <jaxb:property name="typeAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:element[@name='version']//xsd:attribute[@name='column']">
            <jaxb:property name="columnAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='array-element']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='bag-element']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='element-element']//xsd:attribute[@name='type']">
            <jaxb:property name="typeAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='idbag-element']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='idbag-element']//xsd:element[@name='collection-id']//xsd:attribute[@name='column']">
            <jaxb:property name="columnAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='index-element']//xsd:attribute[@name='column']">
            <jaxb:property name="columnAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='join-element']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='joined-subclass-element']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='key-element']//xsd:attribute[@name='column']">
            <jaxb:property name="columnAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='key-many-to-one-element']//xsd:attribute[@name='column']">
            <jaxb:property name="columnAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='key-property-element']//xsd:attribute[@name='column']">
            <jaxb:property name="columnAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='key-property-element']//xsd:attribute[@name='type']">
            <jaxb:property name="typeAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='list-element']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='list-index-element']//xsd:attribute[@name='column']">
            <jaxb:property name="columnAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='map-element']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='map-element']//xsd:element[@name='map-key']//xsd:attribute[@name='type']">
            <jaxb:property name="typeAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='map-element']//xsd:element[@name='index-many-to-many']//xsd:attribute[@name='column']">
            <jaxb:property name="columnAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='one-to-one-element']//xsd:attribute[@name='formula']">
            <jaxb:property name="formulaAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='primitive-array-element']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='property-element']//xsd:attribute[@name='type']">
            <jaxb:property name="typeAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='set-element']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
        <jaxb:bindings node="//xsd:complexType[@name='union-subclass-element']//xsd:attribute[@name='subselect']">
            <jaxb:property name="subselectAttribute"/>
        </jaxb:bindings> 
    </jaxb:bindings>

</jaxb:bindings>

Other Hibernate examples (source code examples)

Here is a short list of links related to this Hibernate hbm-mapping-bindings.xjb source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 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.