JETSPEED-INF.ojb.fast_preferences.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jetspeed-registry Show documentation
Show all versions of jetspeed-registry Show documentation
Jetspeed-2 Registry Components
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- - P O R T L E T P R E F E R E N C E S --> <class-descriptor class="org.apache.jetspeed.om.preference.impl.PreferenceImpl" table="PORTLET_PREFERENCE" > <documentation>Represents a Portlet Preference definition.</documentation> <field-descriptor name="id" column="ID" jdbc-type="BIGINT" primarykey="true" autoincrement="true" > </field-descriptor> <field-descriptor name="applicationName" column="APPLICATION_NAME" jdbc-type="VARCHAR" nullable="false" length="80" > </field-descriptor> <field-descriptor name="portletName" column="PORTLET_NAME" jdbc-type="VARCHAR" nullable="false" length="80" > </field-descriptor> <field-descriptor name="name" column="NAME" jdbc-type="VARCHAR" nullable="false" length="254" > </field-descriptor> </class-descriptor> <class-descriptor class="org.apache.jetspeed.om.preference.impl.PreferenceValueImpl" table="PORTLET_PREFERENCE_VALUE" > <documentation>Represents a Portlet Preference value.</documentation> <field-descriptor name="prefId" column="PREF_ID" jdbc-type="BIGINT" primarykey="true" > </field-descriptor> <reference-descriptor name="preference" class-ref="org.apache.jetspeed.om.preference.impl.PreferenceImpl" auto-retrieve="false" auto-update="none" auto-delete="none" > <foreignkey field-ref="prefId"/> </reference-descriptor> <field-descriptor name="index" column="IDX" jdbc-type="SMALLINT" nullable="false" primarykey="true" > </field-descriptor> <field-descriptor name="entityOid" column="ENTITY_OID" jdbc-type="BIGINT" nullable="false" primarykey="true" > </field-descriptor> <field-descriptor name="userName" column="USER_NAME" jdbc-type="VARCHAR" nullable="false" primarykey="true" length="80" > </field-descriptor> <field-descriptor name="entityId" column="ENTITY_ID" jdbc-type="VARCHAR" nullable="true" length="80" > </field-descriptor> <field-descriptor name="readOnly" column="READONLY" jdbc-type="INTEGER" conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldConversion" nullable="false" > </field-descriptor> <field-descriptor name="nullValue" column="NULL_VALUE" jdbc-type="INTEGER" conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFieldConversion" nullable="false" > </field-descriptor> <field-descriptor name="value" column="PREF_VALUE" jdbc-type="VARCHAR" nullable="true" length="4000" > </field-descriptor> </class-descriptor> <table name="PORTLET_PREFERENCE"> <column name="ID" primaryKey="true" required="true" type="INTEGER"/> <column name="APPLICATION_NAME" required="true" size="80" type="VARCHAR"/> <column name="PORTLET_NAME" required="true" size="80" type="VARCHAR"/> <column name="NAME" required="true" size="254" type="VARCHAR"/> <!-- non-unique index on APPLICATION_NAME,PORTLET_NAME shouldn't be needed as its already "covered" by unique index on APPLICATION_NAME,PORTLET_NAME,NAME <index name="IX_PORTLET_PREFERENCE"> <index-column name="APPLICATION_NAME"/> <index-column name="PORTLET_NAME"/> </index> --> <unique name="UIX_PORTLET_PREFERENCE"> <unique-column name="APPLICATION_NAME"/> <unique-column name="PORTLET_NAME"/> <unique-column name="NAME"/> </unique> </table> <table name="PORTLET_PREFERENCE_VALUE"> <column name="PREF_ID" primaryKey="true" required="true" type="INTEGER"/> <column name="IDX" primaryKey="true" required="true" type="SMALLINT"/> <column name="ENTITY_OID" primaryKey="true" required="true" type="INTEGER"/> <column name="USER_NAME" primaryKey="true" required="true" size="80" type="VARCHAR"/> <column name="ENTITY_ID" type="VARCHAR" size="80"/> <column name="READONLY" required="true" type="BOOLEANINT"/> <column name="NULL_VALUE" required="true" type="BOOLEANINT"/> <column name="PREF_VALUE" size="4000" type="VARCHAR"/> <index name="IX_PREFS_PREF_ID"> <index-column name="PREF_ID"/> </index> <foreign-key foreignTable="PORTLET_PREFERENCE" name="FK_PORTLET_PREFERENCE" onDelete="cascade"> <reference foreign="ID" local="PREF_ID"/> </foreign-key> </table>