[jboss-cvs] jboss-portal/core/src/resources/portal-cms-sar/conf/hibernate/cms ...
Julien Viet
julien at jboss.com
Tue Jul 11 09:59:01 EDT 2006
User: julien
Date: 06/07/11 09:59:01
Added: core/src/resources/portal-cms-sar/conf/hibernate/cms
domain.hbm.xml hibernate.cfg.xml
Log:
unify hibernate config
Revision Changes Path
1.1 date: 2006/07/11 13:59:01; author: julien; state: Exp;jboss-portal/core/src/resources/portal-cms-sar/conf/hibernate/cms/domain.hbm.xml
Index: domain.hbm.xml
===================================================================
<?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.jboss.portal.cms.hibernate.state.VersionBinVal" table="jbp_cms_version_binval" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="id"
column="BINVAL_ID"
type="string"
length="255"/>
<property
name="data"
column="BINVAL_DATA"
type="blob"
length="100000000"
not-null="true"/>
</class>
<class name="org.jboss.portal.cms.hibernate.state.VersionNode" table="jbp_cms_version_node" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="id"
column="NODE_ID"
type="string"
length="36"/>
<property
name="data"
column="NODE_DATA"
type="blob"
length="100000000"
not-null="true"/>
</class>
<class name="org.jboss.portal.cms.hibernate.state.VersionProp" table="jbp_cms_version_prop" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="id"
column="PROP_ID"
type="string"
length="255"/>
<property
name="data"
column="PROP_DATA"
type="blob"
length="100000000"
not-null="true"/>
</class>
<class name="org.jboss.portal.cms.hibernate.state.VersionRefs" table="jbp_cms_version_refs" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="id"
column="NODE_ID"
type="string"
length="36"/>
<property
name="data"
column="REFS_DATA"
type="blob"
length="100000000"
not-null="true"/>
</class>
<class name="org.jboss.portal.cms.hibernate.state.WSPBinVal" table="jbp_cms_wsp_binval" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="id"
column="BINVAL_ID"
type="string"
length="255"/>
<property
name="data"
column="BINVAL_DATA"
type="blob"
length="100000000"
not-null="true"/>
</class>
<class name="org.jboss.portal.cms.hibernate.state.WSPNode" table="jbp_cms_wsp_node" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="id"
column="NODE_ID"
type="string"
length="36"/>
<property
name="data"
column="NODE_DATA"
type="blob"
length="100000000"
not-null="true"/>
</class>
<class name="org.jboss.portal.cms.hibernate.state.WSPProp" table="jbp_cms_wsp_prop" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="id"
column="PROP_ID"
type="string"
length="255"/>
<property
name="data"
column="PROP_DATA"
type="blob"
length="100000000"
not-null="true"/>
</class>
<class name="org.jboss.portal.cms.hibernate.state.WSPRefs" table="jbp_cms_wsp_refs" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="id"
column="NODE_ID"
type="string"
length="36"/>
<property
name="data"
column="REFS_DATA"
type="blob"
length="100000000"
not-null="true"/>
</class>
<class name="org.jboss.portal.cms.hibernate.CMSEntry" table="jbp_cms_cmsentry" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="name"
column="FSENTRY_NAME"
type="string"
length="255"
not-null="false"/>
<property name="path"
column="FSENTRY_PATH"
type="string"
not-null="true"
length="245"/>
<property name="data"
column="FSENTRY_DATA"
type="blob"
length="100000000"
not-null="false"/>
<property name="lastmod"
column="FSENTRY_LASTMOD"
type="long"
not-null="true"/>
<property name="length"
column="FSENTRY_LENGTH"
type="long"
not-null="true"/>
</class>
<class name="org.jboss.portal.cms.hibernate.RepositoryEntry" table="jbp_cms_repositoryentry" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="name"
column="FSENTRY_NAME"
type="string"
length="255"
not-null="false"/>
<property name="path"
column="FSENTRY_PATH"
type="string"
not-null="true"
length="245"/>
<property name="data"
column="FSENTRY_DATA"
type="blob"
length="100000000"
not-null="false"/>
<property name="lastmod"
column="FSENTRY_LASTMOD"
type="long"
not-null="true"/>
<property name="length"
column="FSENTRY_LENGTH"
type="long"
not-null="true"/>
</class>
<class name="org.jboss.portal.cms.hibernate.VersionEntry" table="jbp_cms_versionentry" lazy="true">
<id
name="key"
column="PK"
type="java.lang.Integer">
<generator class="native"/>
</id>
<property
name="name"
column="FSENTRY_NAME"
type="string"
length="255"
not-null="false"/>
<property name="path"
column="FSENTRY_PATH"
type="string"
not-null="true"
length="245"/>
<property name="data"
column="FSENTRY_DATA"
type="blob"
length="100000000"
not-null="false"/>
<property name="lastmod"
column="FSENTRY_LASTMOD"
type="long"
not-null="true"/>
<property name="length"
column="FSENTRY_LENGTH"
type="long"
not-null="true"/>
</class>
</hibernate-mapping>
1.1 date: 2006/07/11 13:59:01; author: julien; state: Exp;jboss-portal/core/src/resources/portal-cms-sar/conf/hibernate/cms/hibernate.cfg.xml
Index: hibernate.cfg.xml
===================================================================
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">java:@portal.datasource.name@</property>
<property name="show_sql">@portal.sql.show@</property>
<property name="cache.use_second_level_cache">false</property>
<property name="cache.use_query_cache">true</property>
<!-- Force the dialect instead of using autodetection -->
<!--
<property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
-->
<!-- Mapping files -->
<mapping resource="conf/hibernate/cms/domain.hbm.xml"/>
</session-factory>
</hibernate-configuration>
More information about the jboss-cvs-commits
mailing list