<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE sqlMap
    PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
    "http://ibatis.apache.org/dtd/sql-map-2.dtd">

<sqlMap namespace="alfresco.avm">

    <insert id="insert_AVMStore" parameterClass="AVMStore">
        <include refid="insert_AVMStore_AutoIncrement"/>
        <selectKey resultClass="long" keyProperty="id" type="post">
            KEY_COLUMN:GENERATED_KEY
        </selectKey>
    </insert>
    
    <insert id="insert_AVMStoreProperty" parameterMap="parameter_StorePropertyPatternMap">
        <include refid="insert_AVMStoreProperty_AutoIncrement"/>
        <selectKey resultClass="long" keyProperty="id" type="post">
            KEY_COLUMN:GENERATED_KEY
        </selectKey>
    </insert>
    
    <insert id="insert_AVMNode" parameterClass="AVMNode">
        <include refid="insert_AVMNode_AutoIncrement"/>
        <selectKey resultClass="long" keyProperty="id" type="post">
            KEY_COLUMN:GENERATED_KEY
        </selectKey>
    </insert>
    
    <insert id="insert_AVMVersionRoot" parameterClass="AVMVersionRoot">
        <include refid="insert_AVMVersionRoot_AutoIncrement"/>
        <selectKey resultClass="long" keyProperty="id" type="post">
            KEY_COLUMN:GENERATED_KEY
        </selectKey>
    </insert>
    
</sqlMap>