<?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.lock">

    <insert id="insert_LockResource" parameterClass="LockResource" >
        <include refid="insert_LockResource_AutoIncrement"/>
        <selectKey resultClass="long" keyProperty="id" type="post">
            KEY_COLUMN:GENERATED_KEY
        </selectKey>
    </insert>

    <insert id="insert_Lock" parameterClass="Lock" >
        <include refid="insert_Lock_AutoIncrement"/>
        <selectKey resultClass="long" keyProperty="id" type="post">
            KEY_COLUMN:GENERATED_KEY
        </selectKey>
    </insert>

</sqlMap>