<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="org.blojsom.blog.database.DatabaseBlog" table="Blog" lazy="false">
<id name="id">
<column name="id" sql-type="integer" not-null="true" unique="true"/>
<generator class="identity"/>
</id>
<property name="blogId">
<column name="blog_id" sql-type="string" not-null="true" unique="true"/>
</property>
<map name="templates" table="Template" cascade="all" inverse="false" lazy="false">
<key column="blog_id" not-null="true"/>
<map-key column="template_flavor" type="string"/>
<element column="template_value" type="string"/>
</map>
<map name="plugins" table="Plugin" cascade="all" inverse="false" lazy="false">
<key column="blog_id" not-null="true"/>
<map-key column="plugin_flavor" type="string"/>
<element column="plugin_value" type="string"/>
</map>
<map name="properties" table="Properties" cascade="all" inverse="false" lazy="false">
<key column="blog_id" not-null="true"/>
<map-key column="property_name" type="string"/>
<element column="property_value" type="text"/>
</map>
</class>
<sql-query name="blog.id.list">
select blog_id from Blog
</sql-query>
</hibernate-mapping>