<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC 
	"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
	"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping package="net.sf.ehcache.hibernate.domain">
	

	<class name="Item" table="Items">
		<cache usage="read-write"/>
		<id name="id">
			<generator class="increment"/>
		</id>
		<property name="name" not-null="true"/>
		<property name="description" not-null="true"/>
	</class>

	<class name="VersionedItem" table="VersionedItems">
		<cache usage="read-write"/>
		<id name="id">
			<generator class="increment"/>
		</id>
        <version name="version" type="long"/>
        <property name="name" not-null="true"/>
		<property name="description" not-null="true"/>
	</class>

</hibernate-mapping>
