<?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="CommentBridge" table="comment_bridge" dynamic-update="true">
		<id name="id" column="id">
			<generator class="native" />
		</id>
		<property name="total" />
		<property name="objType" />
		<property name="objID" />
		<property name="objTitle" />
		<property name="hosturl" />
		<property name="status" />
		<property name="userteam" />
		
		<many-to-one name="user" column="userID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="User" />
		<many-to-one name="objTeam" column="teamID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="Team" />	
		<many-to-one name="parent" column="parentID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="CommentBridge" />

	</class>
</hibernate-mapping>
