<?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"
                 version="2.0">
    <package>org.hibernate.test.annotations.onetoone</package>
    <entity class="Father">
        <attributes>
            <id name="id">
                <generated-value strategy="AUTO"/>
            </id>
            <basic name="name"/>
        </attributes>
    </entity>
    <entity class="Son">
        <attributes>
            <id name="id">
                <generated-value strategy="AUTO"/>
            </id>
            <basic name="name"/>
            <one-to-one name="father">
                <join-table name="father_son">
                    <join-column name="foo"/>
                    <inverse-join-column name="bar"/>
                </join-table>
            </one-to-one>
        </attributes>
    </entity>
</entity-mappings>