<?xml version="1.0" encoding="utf-8"?>
<data-map xmlns="http://cayenne.apache.org/schema/3.0/modelMap"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://cayenne.apache.org/schema/3.0/modelMap http://cayenne.apache.org/schema/3.0/modelMap.xsd"
  project-version="3.0.0.1">
	<property name="defaultPackage" value="org.example"/>
	<db-entity name="BOOK">
		<db-attribute name="AUTHOR" type="VARCHAR" length="500"/>
		<db-attribute name="ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
		<db-attribute name="ISBN" type="CHAR" length="9"/>
		<db-attribute name="PRICE" type="DECIMAL"/>
		<db-attribute name="TITLE" type="VARCHAR" length="500"/>
		<db-attribute name="TYPE" type="CHAR" isMandatory="true" length="1"/>
	</db-entity>
	<db-entity name="EBOOK">
		<db-attribute name="DOWNLOAD_URL" type="VARCHAR" length="500"/>
		<db-attribute name="ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
		<db-attribute name="SIZE_MB" type="DECIMAL"/>
	</db-entity>
	<db-entity name="PAPER_BOOK">
		<db-attribute name="ID" type="BIGINT" isPrimaryKey="true" isMandatory="true"/>
		<db-attribute name="IN_STOCK" type="BOOLEAN"/>
		<db-attribute name="SHIPPING_WEIGHT" type="DECIMAL"/>
	</db-entity>
	<obj-entity name="Book" className="org.example.Book" dbEntityName="BOOK">
		<obj-attribute name="author" type="java.lang.String" db-attribute-path="AUTHOR"/>
		<obj-attribute name="isbn" type="java.lang.String" db-attribute-path="ISBN"/>
		<obj-attribute name="price" type="java.math.BigDecimal" db-attribute-path="PRICE"/>
		<obj-attribute name="title" type="java.lang.String" db-attribute-path="TITLE"/>
		<obj-attribute name="type" type="java.lang.String" db-attribute-path="TYPE"/>
	</obj-entity>
	<obj-entity name="PaperBook" superEntityName="Book" className="org.example.PaperBook">
		<qualifier><![CDATA[type = "P"]]></qualifier>
		<obj-attribute name="inStock" type="boolean" db-attribute-path="paperBook.IN_STOCK"/>
	</obj-entity>
	<db-relationship name="ebook" source="BOOK" target="EBOOK" toDependentPK="true" toMany="false">
		<db-attribute-pair source="ID" target="ID"/>
	</db-relationship>
	<db-relationship name="paperBook" source="BOOK" target="PAPER_BOOK" toDependentPK="true" toMany="false">
		<db-attribute-pair source="ID" target="ID"/>
	</db-relationship>
	<db-relationship name="book" source="EBOOK" target="BOOK" toMany="false">
		<db-attribute-pair source="ID" target="ID"/>
	</db-relationship>
	<db-relationship name="book" source="PAPER_BOOK" target="BOOK" toMany="false">
		<db-attribute-pair source="ID" target="ID"/>
	</db-relationship>
</data-map>
