Privilege.hbm.xml 1.0 KB

1234567891011121314151617181920
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
  3. <hibernate-mapping package="id.co.hanoman.service.mwapp">
  4. <class name="Privilege" table="privilege" lazy="false" >
  5. <id name="id" column="id" type="string" length="256"/>
  6. <property name="name" column="name" type="string" not-null="true" length="256"/>
  7. <property name="type" column="type" type="string" not-null="true" length="100"/>
  8. <property name="path" column="path" type="string" not-null="true" length="256"/>
  9. <many-to-one name="parent" class="Privilege" column="parent" not-null="false"/>
  10. <property name="priority" column="priority" type="int" not-null="false"/>
  11. <property name="status" column="status" type="string" not-null="true" length="20"/>
  12. <property name="modifiedBy" column="modified_by" type="string" not-null="true" length="64"/>
  13. <property name="timestamp" column="timestamp" type="java.util.Calendar" not-null="true"/>
  14. </class>
  15. </hibernate-mapping>