mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-23 18:05:32 +00:00
Preliminary service interface. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5379 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
92 lines
4.6 KiB
XML
92 lines
4.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
|
|
|
|
<!-- Polymorphic, nestable attributes. -->
|
|
<hibernate-mapping package="org.alfresco.repo.attributes">
|
|
<!-- Value is the base class for metadata values. -->
|
|
<class table="alf_values" abstract="true"
|
|
name="ValueImpl" proxy="Value"
|
|
optimistic-lock="version"
|
|
lazy="true">
|
|
<cache usage="read-write"/>
|
|
<id name="id" column="id" type="long">
|
|
<generator class="native"/>
|
|
</id>
|
|
<discriminator column="type" type="string" length="1"/>
|
|
<version column="version" name="version" type="long"/>
|
|
<!-- A boolean valued attribute -->
|
|
<subclass name="BooleanValueImpl" proxy="BooleanValue" lazy="true"
|
|
discriminator-value="O">
|
|
<property name="booleanValue" column="bool_value" type="boolean" index="value_bool_index"/>
|
|
</subclass>
|
|
<!-- A byte valued attribute -->
|
|
<subclass name="ByteValueImpl" proxy="ByteValue" lazy="true"
|
|
discriminator-value="Y">
|
|
<property name="byteValue" column="byte_value" type="byte" index="value_byte_index"/>
|
|
</subclass>
|
|
<!-- A short valued attribute -->
|
|
<subclass name="ShortValueImpl" proxy="ShortValue" lazy="true"
|
|
discriminator-value="H">
|
|
<property name="shortValue" column="short_value" type="short" index="value_short_index"/>
|
|
</subclass>
|
|
<!-- An integer valued attribute. -->
|
|
<subclass name="IntValueImpl" proxy="IntValue" lazy="true"
|
|
discriminator-value="I">
|
|
<property name="intValue" column="int_value" type="int" index="value_int_index"/>
|
|
</subclass>
|
|
<!-- A long valued attribute -->
|
|
<subclass name="LongValueImpl" proxy="LongValue" lazy="true"
|
|
discriminator-value="L">
|
|
<property name="longValue" column="long_value" type="long" index="value_long_index"/>
|
|
</subclass>
|
|
<!-- A float valued attribute -->
|
|
<subclass name="FloatValueImpl" proxy="FloatValue" lazy="true"
|
|
discriminator-value="F">
|
|
<property name="floatValue" column="float_value" type="float" index="value_float_index"/>
|
|
</subclass>
|
|
<!-- A double valued attribute -->
|
|
<subclass name="DoubleValueImpl" proxy="DoubleValue" lazy="true"
|
|
discriminator-value="D">
|
|
<property name="doubleValue" column="double_value" type="double" index="value_double_index"/>
|
|
</subclass>
|
|
<!-- A string valued attribute -->
|
|
<subclass name="StringValueImpl" proxy="StringValue" lazy="true"
|
|
discriminator-value="S">
|
|
<property name="stringValue" column="string_value" type="string"
|
|
length="512" index="value_string_index(64)"/>
|
|
</subclass>
|
|
<!-- A blob valued attribute -->
|
|
<subclass name="BlobValueImpl" proxy="BlobValue" lazy="true"
|
|
discriminator-value="B">
|
|
<property name="blobValue" column="blob_value" type="blob"
|
|
length="8192"/>
|
|
</subclass>
|
|
<!-- A serializable attribute -->
|
|
<subclass name="SerializableValueImpl" proxy="SerializableValue" lazy="true"
|
|
discriminator-value="E">
|
|
<property name="serializableValue" column="serializable_value" lazy="true"
|
|
length="8192"/>
|
|
</subclass>
|
|
<!-- A list attribute -->
|
|
<subclass name="ListValueImpl" proxy="ListValue" lazy="true"
|
|
discriminator-value="T">
|
|
<list name="data" table="alf_list_data" lazy="true" cascade="all">
|
|
<cache usage="read-write"/>
|
|
<key column="value_id"/>
|
|
<index type="int" column="offset"/>
|
|
<many-to-many class="ValueImpl" column="list_value" lazy="true"/>
|
|
</list>
|
|
</subclass>
|
|
<!-- A map attribute -->
|
|
<subclass name="MapValueImpl" proxy="MapValue" lazy="true"
|
|
discriminator-value="M">
|
|
<map name="data" table="alf_map_data" lazy="true" cascade="all">
|
|
<cache usage="read-write"/>
|
|
<key column="value_id"/>
|
|
<map-key column="map_key" type="string" length="160"/>
|
|
<many-to-many class="AttributeImpl" column="map_attr" lazy="true"/>
|
|
</map>
|
|
</subclass>
|
|
</class>
|
|
</hibernate-mapping>
|