Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?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 auto-import="false" default-access="field"
  package="org.ow2.bonita.facade.def.element.impl">

  <class name="DeadlineDefinitionImpl" table="NOVA_DEADLINE_DEF">
    <id type="long" column="DBID_">
      <generator class="native" />
    </id>
    <property name="deadlineCondition" column="DEADLINE_COND_" />
    <property name="exceptionName" column="EXCEPTION_NAME_" />
    <property name="execution" column="EXECUTION_">
      <type
        name="org.ow2.bonita.util.hibernate.GenericEnumUserType">
        <param name="enumClass">
          org.ow2.bonita.facade.def.element.DeadlineDefinition$Execution
        </param>
      </type>
    </property>
  </class>

  <class name="ToolDefinitionImpl" table="NOVA_TOOL_DEF">
    <id type="long" column="DBID_">
      <generator class="native" />
    </id>
    <property name="description" column="DESCR_" />
    <property name="id" column="TOOL_ID_" />
    <property name="type" column="TYPE_">
      <type
        name="org.ow2.bonita.util.hibernate.GenericEnumUserType">
        <param name="enumClass">
          org.ow2.bonita.facade.def.element.ToolDefinition$Type
        </param>
      </type>
    </property>
    <list name="actualParameters" table="NOVA_TOOL_PARAMS"
      cascade="all">
      <key column="TOOL_ID_" />
      <list-index column="ACT_PARAMS_IDX_" />
      <element column="ACTUAL_PARAMS_" type="string" />
    </list>
  </class>

  <class name="TransitionRestrictionDefinitionImpl" table="NOVA_TRANS_RES_DEF">
    <id type="long" column="DBID_">
      <generator class="native" />
    </id>
    <property name="joinType" column="JOIN_TYPE_">
      <type
        name="org.ow2.bonita.util.hibernate.GenericEnumUserType">
        <param name="enumClass">
          org.ow2.bonita.facade.def.element.TransitionRestrictionDefinition$JoinType
        </param>
      </type>
    </property>
    <property name="splitType" column="SPLIT_TYPE_">
      <type
        name="org.ow2.bonita.util.hibernate.GenericEnumUserType">
        <param name="enumClass">
          org.ow2.bonita.facade.def.element.TransitionRestrictionDefinition$SplitType
        </param>
      </type>
    </property>
    <set name="splitTransitionRefIds" table="NOVA_TRANS_REF_IDS"
      cascade="all">
      <key column="TRANS_RES_ID_" />
      <element column="TRANS_ERS_REF_IDS_" type="string" />
    </set>
  </class>

  <class name="HookDefinitionImpl" table="NOVA_HOOK_DEF">
    <id type="long" column="DBID_">
      <generator class="native" />
    </id>
    <property name="className" column="CLASSNAME_" />
    <property name="throwingException" column="THROW_EX_" />
    <map name="parameters" table="NOVA_HOOK_PARAMS">
      <key column="HOOK_ID_" />
      <map-key type="string" column="PARAM_NAME_" />
      <element type="string" column="PARAM_VALUE_" />
    </map>
    <property name="event" column="EVENT_">
      <type
        name="org.ow2.bonita.util.hibernate.GenericEnumUserType">
        <param name="enumClass">
          org.ow2.bonita.facade.def.element.HookDefinition$Event
        </param>
      </type>
    </property>
  </class>

  <class name="FormalParameterDefinitionImpl" table="NOVA_PARAM_DEF">
    <id type="long" column="DBID_">
      <generator class="native" />
    </id>
    <property name="index" column="INDEX_" />
    <property name="description" column="DESCR_" />
    <property name="id" column="FORMAL_PARAM_ID_" />
    <property name="mode" column="MODE_">
      <type
        name="org.ow2.bonita.util.hibernate.GenericEnumUserType">
        <param name="enumClass">
          org.ow2.bonita.facade.def.element.FormalParameterDefinition$Mode
        </param>
      </type>
    </property>
    <many-to-one name="dataType" class="org.ow2.bonita.facade.def.dataType.impl.DataTypeDefinitionImpl" column="DATATYPE_" cascade="all"/>
  </class>

  <class name="ExternalPackageDefinitionImpl" table="NOVA_EXT_PACKAGE_DEF">
    <id type="long" column="DBID_">
      <generator class="native" />
    </id>
    <property name="href" column="HREF_" />
  </class>

  <class name="TypeDeclarationDefinitionImpl" table="NOVA_TYPE_DECL_DEF">
    <id type="long" column="DBID_">
      <generator class="native" />
    </id>
    <property name="id" column="TYPE_DECL_ID_" />
    <property name="description" column="TYPE_DECL_EDSCR_" />
    <property name="name" column="TYPE_DECL_NAME_" />
    <set name="dataTypes" cascade="all">
      <key column="TYPE_DECL_ID_" />
      <one-to-many
        class="org.ow2.bonita.facade.def.dataType.impl.DataTypeDefinitionImpl"/>
    </set>
  </class>

  <class name="org.ow2.bonita.facade.def.dataType.impl.DataTypeValueImpl"
    abstract="true" table="NOVA_DATATYPE">
    <id type="long" column="DBID_">
      <generator class="native" />
    </id>
    <discriminator column="CLASS_" type="string" />
    <subclass
      name="org.ow2.bonita.facade.def.dataType.impl.BasicTypeDefinitionImpl"
      discriminator-value="BASIC">
      <property name="type" column="TYPE_">
        <type
          name="org.ow2.bonita.util.hibernate.GenericEnumUserType">
          <param name="enumClass">
            org.ow2.bonita.facade.def.dataType.BasicTypeDefinition$Type
          </param>
        </type>
      </property>
    </subclass>
    <subclass
      name="org.ow2.bonita.facade.def.dataType.impl.EnumerationTypeDefinitionImpl"
      discriminator-value="ENUM">
      <set name="enumerationValues" table="NOVA_ENUM_VALUES"
        cascade="all">
        <key column="DATATYPE_ID_" />
        <element column="ENUM_VALUES_" type="string" />
      </set>
    </subclass>
  </class>

  <class
    name="org.ow2.bonita.facade.def.dataType.impl.DataTypeDefinitionImpl"
    table="NOVA_DATATYPE_DEF">
    <id type="long" column="DBID_">
      <generator class="native" />
    </id>
    <property name="type" column="TYPE_">
      <type
        name="org.ow2.bonita.util.hibernate.GenericEnumUserType">
        <param name="enumClass">
          org.ow2.bonita.facade.def.dataType.DataTypeDefinition$Type
        </param>
      </type>
    </property>
    <many-to-one name="value" column="VALUE_"
      class="org.ow2.bonita.facade.def.dataType.impl.DataTypeValueImpl" cascade="all"/>
  </class>
  
   <class name="MultiInstantiationDefinitionImpl" table="NOVA_INSTANTIATOR_DEF">
      <id type="long" column="DBID_">
        <generator class="native" />
      </id>
      <property name="variableId" column="VAR_ID_" />
      <property name="className" column="CLASSNAME_" />
      <map name="parameters" table="NOVA_INSTANTIATOR_PARAMS">
        <key column="PARAM_ID_" />
        <map-key type="string" column="PARAM_NAME_" />
        <element type="string" column="PARAM_VALUE_" />
      </map>
   </class>
   
   <class name="ResourceImpl" table="NOVA_RESOURCE">
    <id name="dbid" column="DBID_">
      <generator class="native" />
    </id>
    <property column="PATH_" name="path" type="string" length="2048"/>
    <property column="BYTES_" name="data" type="serializable"
      length="65536" />
  </class>
   
</hibernate-mapping>
New to GrepCode? Check out our FAQ X