rendered paste body<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="htest.logic.User" table="users"> <id name="userId" column="userId"> <generator class="native"></generator> </id> <property name="name" /> <property name="address1" /> <property name="address2" /> <property name="city" /> <property name="state" /> <property name="zip" /> <property name="phone" /> <property name="email" /> <property name="password" /> <property name="emailUpdates" /> <list name="units" cascade="all"> <key column="userId"/> <index column="unitId"/> <one-to-many class="htest.logic.Unit"/> </list> </class> <class name="htest.logic.Unit" table="units"> <id name="unitId" column="unitId"> <generator class="native"></generator> </id> <property name="name" /> <property name="rent" /> <property name="type" column="apartmentType" length="25"/> <property name="address1" length="100" /> <property name="address2" length="100" /> <property name="city" length="100" /> <property name="state" length="100" /> <property name="zip" length="10" /> <property name="bedrooms" /> <property name="bathrooms" /> <property name="squareFeet" /> <property name="description" type="text" /> <property name="leaseInformation" type="text" /> <property name="photo1" /> <property name="photo2" /> <property name="photo3" /> <property name="photo4" /> <property name="photo5" /> <property name="photo6" /> <list name="unitOptions" cascade="all"> <key column="unitId"/> <index column="unitOptionId"/> <one-to-many class="htest.logic.UnitOption"/> </list> </class> <class name="htest.logic.UnitOption" table="unitOptions"><id name="unitOptionId" column="unitOptionId"><generator class="native"></generator></id><property name="name"></property></class> </hibernate-mapping>