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

<!DOCTYPE hibernate-mapping PUBLIC 
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.lerx.entities">
	<class name="CommentThread" table="comment_thread" dynamic-update="true">
		<id name="id" column="id">
			<generator class="native" />
		</id>
		<property name="subject" />
		<property name="content" />
		<property name="ip" />
		<property name="occurDatetime" />
		<property name="views" />
		<property name="replies" />
		<property name="status" />
		<property name="deleted" />
		<property name="uuid" />
		<many-to-one name="parent" column="parentID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="CommentThread" />
		<many-to-one name="poll" column="pollID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="Poll" />
		<many-to-one name="cb" column="cbID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="CommentBridge" />
		<many-to-one name="user" column="userID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="User" />
		<many-to-one name="srt" column="searchID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="com.lerx.entities.SearchTotalModel" />

	</class>
</hibernate-mapping>
