Client.hbm.xml 1.1 KB

123456789101112131415161718192021222324
  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.config">
  4. <class name="Client" table="client" lazy="false" >
  5. <id name="adaptorId" column="adaptor_id" type="string" length="256" />
  6. <property name="idleWait" column="idle_wait" type="long" not-null="false" />
  7. <property name="timeout" column="timeout" type="integer" not-null="false" />
  8. <property name="closeQueue" column="close_queue" type="string" length="256" not-null="false"/>
  9. <property name="controlQueue" column="control_queue" type="string" length="256" not-null="false"/>
  10. <property name="keepConn" column="keep_conn" type="integer" not-null="false"/>
  11. <property name="reuseDelay" column="reuse_delay" type="integer" not-null="false" />
  12. <property name="node" column="node" type="string" length="256" not-null="false"/>
  13. <bag name="clientTargets" cascade="all-delete-orphan">
  14. <key column="client_id" />
  15. <one-to-many class="ClientTarget"/>
  16. </bag>
  17. </class>
  18. </hibernate-mapping>