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

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
	<class name="AidA.Data.Entities.AntragsPersonenDaten, AidA" table="AntragsPersonenDaten">
		<id name="Id" column="Id" type="Int64" unsaved-value="null">
			<generator class="identity" />
		</id>
		<property name="Strasse" type="String" />
		<property name="Plz" type="String" />
		<property name="Ort" type="String" />
		<property name="Telefon" type="String" />
		<property name="Email" type="String" />
		<property name="Handy" type="String" />
		<property name="Fax" type="String" />
		<property name="Iban" type="String" />
		<property name="Bank" type="String" />
		<property name="AussergewoehnlGehBehinderung" type="Boolean" />
		<property name="HilflosNachESTG" type="Boolean" />
		<property name="Blind" type="Boolean" />
		<property name="Gehoerlos" type="Boolean" />
		<property name="RundfunkbeitragsErmaessigung" type="Boolean" />
		<property name="BegleitPersonÖffentlVerkehrsmittel" type="Boolean" />
		<property name="ErhebBeeintrBewStrassenVerkehr" type="Boolean" />
		<property name="PsychischeErkrankung" type="Boolean" />
		<property name="Version" type="Int64" />

		<property name="AntragsId" type="Int64" />

		<bag name="AntragsGegenstaende" table="AntragsGegenstand" generic="true" cascade="all-delete-orphan" batch-size="250">
			<key column="AntragsPersonenDatenId" />
			<one-to-many class="AidA.Data.Entities.AntragsGegenstand, AidA" />
		</bag>
		<many-to-one name="PersonenIdentitaet" column="PersonenIdentitaetId" class="AidA.Data.Entities.PersonenIdentitaet, AidA" cascade="none" />
	</class>
</hibernate-mapping>