The "xwikistrings" Table

The xwikistrings table stores data from XWiki object properties of type "String" (short text) and it corresponds to the com.xpn.xwiki.objects.StringProperty class which is a sub-class of com.xpn.xwiki.objects.BaseProperty.

The mapping information is available in the xwiki.hbm.xml file:

<class name="com.xpn.xwiki.objects.BaseProperty" table="xwikiproperties">
 <composite-id unsaved-value="undefined">
   <key-property name="id" column="XWP_ID" type="long" />
   <key-property name="name" type="string">
     <column name="XWP_NAME" index="PROP_NAME" />
   </key-property>
 </composite-id>
 <property name="classType" type="string" column="XWP_CLASSTYPE" length="255" />
 <joined-subclass name="com.xpn.xwiki.objects.StringProperty" table="xwikistrings">
   <key>
     <column name="XWS_ID" />
     <column name="XWS_NAME" index="XWSTR_NAME" />
   </key>
   <property name="value" type="string" column="XWS_VALUE" length="255" index="XWSTR_VALUE" />
 </joined-subclass>
</class>

The columns of the xwikistrings table are:

ColumnData typeClass propertyDefault valuenot-nullIndex
XWS_ID (primary key)bigint(20)-0true-
XWS_NAME (primary key)varchar(255)--trueXWSTR_NAME
XWS_VALUEvarchar(255)value--XWSTR_VALUE

 

Related Pages

Search this space