<selectKey keyProperty ="id" resultType ="Long" order ="AFTER"> SELECT LAST_INSERT_ID AS id </selectKey>