<?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>

	<class name="net.sf.ehcache.hibernate.domain.HolidayCalendar" table="CALENDAR" lazy="false">
		<id name="id" column="CALENDAR_ID">
			<generator class="native" />
		</id>

		<map name="holidays" table="CALENDAR_HOLIDAYS" lazy="false">
			<key column="CALENDAR_ID" />
      <map-key column="hol_date" type="date"/>
      <element column="hol_name" type="string"/>
		</map>

	</class>

</hibernate-mapping>
