diff options
Diffstat (limited to 'intentanalysis/src/main/resources/mybatis/sql/IntentInstanceMapper.xml')
-rw-r--r-- | intentanalysis/src/main/resources/mybatis/sql/IntentInstanceMapper.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/intentanalysis/src/main/resources/mybatis/sql/IntentInstanceMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/IntentInstanceMapper.xml new file mode 100644 index 0000000..3534e78 --- /dev/null +++ b/intentanalysis/src/main/resources/mybatis/sql/IntentInstanceMapper.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="org.onap.usecaseui.intentanalysis.mapper.IntentInstanceMapper"> + <insert id="insertIntentInstance"> + insert into intent_instance(intent_instance_id,intent_id) + values (#{intentInstance.intentInstanceId},#{intentInstance.intentId}); + </insert> + + <select id="selectIntentInstanceByIntentId" resultType="java.lang.String"> + select intent_instance_id from intent_instance + where intent_id = #{intentId} + </select> + + <delete id="deleteIntentInstances"> + delete from intent_instance where intent_id = #{intentId} + </delete> + + <select id="selectIntentInstance" + resultType="org.onap.usecaseui.intentanalysis.bean.models.IntentInstance"> + select intent_instance_id intentInstanceId,intent_id intentId from intent_instance + where intent_instance_id = #{intentInstanceId} + </select> +</mapper> |