You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
895 B

10 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC
  3. "-//Hibernate/Hibernate Mapping DTD//EN"
  4. "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
  5. <hibernate-mapping>
  6. <class name="com.sothr.imagetools.engine.image.Image" table="Image">
  7. <meta attribute="class-description">
  8. This class contains the image hashes and meta data
  9. </meta>
  10. <id name="imagePath" type="string" column="path"/>
  11. <property name="thumbnailPath" column="thumbnail_path" type="string" not-null="true"/>
  12. <property name="width" column="width" type="int" not-null="true"/>
  13. <property name="height" column="height" type="int" not-null="true"/>
  14. <many-to-one name="hashes" column="hashes" unique="true" class="com.sothr.imagetools.engine.dto.ImageHashDTO"
  15. cascade="save-update, delete" not-null="true" lazy="false"/>
  16. </class>
  17. </hibernate-mapping>