<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">java:comp/env/jdbc/f4t</property>
<property name="dialect">net.sf.hibernate.dialect.PostgreSQLDialect</property>
<property name="show_sql">true</property>
<mapping resource="f4t/hibernate/Urls.hbm.xml"/>
<mapping resource="f4t/hibernate/Html.hbm.xml"/>
</session-factory>
</hibernate-configuration>
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin
http://boss.bekk.no/boss/middlegen/
http://hibernate.sourceforge.net/
-->
<class name="f4t.hibernate.Html" table="html" >
<id name="urlid" type="java.lang.Long" column="urlid" >
<generator class="assigned" />
</id>
<property name="html" type="java.lang.String" column="html" not-null="true" length="-1" />
<property name="title" type="java.lang.String" column="title" />
<!-- associations -->
<!-- bi-directional one-to-one association to Url -->
<one-to-one name="urlid" class="f4t.hibernate.Urls" outer-join="auto" constrained="true" />
</class>
</hibernate-mapping>
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin
http://boss.bekk.no/boss/middlegen/
http://hibernate.sourceforge.net/
-->
<class name="f4t.hibernate.Urls" table="urls" >
<id name="id" type="java.lang.Long" column="id" >
<generator class="assigned" />
</id>
<property name="url" type="java.lang.String" column="url" not-null="true" unique="true" length="1024" />
<property name="valid" type="boolean" column="valid" not-null="true" length="1" />
<property name="timestamp" type="java.sql.Timestamp" column="timestamp" length="8" />
<!-- associations -->
<!-- bi-directional one-to-one association to Text -->
<one-to-one name="text" class="f4t.hibernate.Text" outer-join="auto" />
<!-- bi-directional one-to-one association to Html -->
<one-to-one name="html" class="f4t.hibernate.Html" outer-join="auto" />
</class>
</hibernate-mapping>