<?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="Album" table="album" dynamic-update="true">
		<id name="id" column="id">
			<generator class="native" />
		</id>
		
		<property name="name" />
		<property name="description" type="text" />
		<property name="mail" />
		<property name="logo" />
		<property name="banner" />
		<property name="txt1" />
		<property name="txt2" />
		<property name="labels" />
		<property name="uuid" />
		<property name="logoSmall" />
		<property name="logo8831" />
		<property name="bannerSmall" />
		<property name="css" type="text" />
		<property name="htmlOwn" type="text" />
		<property name="color1" />
		<property name="color2" />
		<property name="color3" />
		<property name="deled" />
		<property name="status" />
		<property name="open" />
		<property name="memberAdd" />
		<property name="conservative" />
		<property name="comm" />
		<property name="mesback" />
		<property name="createTime" />
		<property name="lastEditTime" />
		<property name="lastViewTime" />
		<property name="lastViewIP" />
		<property name="lastModifyTime" />
		<property name="expiredDate" />
		<property name="totalArt" />
		<property name="totalArtSoul" />
		<property name="totalPartner" />	
		<property name="totalProhibit" />
		<property name="hotn" />

		<many-to-one name="genre" column="genreID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="Albgenre" />
		<many-to-one name="vbook" column="vbookID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="com.lerx.entities.VisitorsBook" />
		<many-to-one name="poll" column="pollID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="com.lerx.entities.Poll" />
		<many-to-one name="cb" column="cbID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="com.lerx.entities.CommentBridge" />
		<many-to-one name="leader" column="leaderUID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="com.lerx.entities.User" />
		<many-to-one name="passer" column="passerUID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="com.lerx.entities.User" />
		<many-to-one name="templet" column="templetID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="TempletAlbumMain" />	
		<many-to-one name="srt" column="searchID" lazy="false" cascade="none" fetch="select" 
			outer-join="true" class="com.lerx.entities.SearchTotalModel" />
        
	</class>
</hibernate-mapping>
