summaryrefslogtreecommitdiffstats
path: root/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml
diff options
context:
space:
mode:
Diffstat (limited to 'intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml')
-rw-r--r--intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml b/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml
index 5e2847b..9d6029f 100644
--- a/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml
+++ b/intentanalysis/src/main/resources/mybatis/sql/IntentMapper.xml
@@ -31,4 +31,9 @@
where intent_id = #{intentId}
</delete>
+ <select id="getIntentByName" resultType="org.onap.usecaseui.intentanalysis.bean.models.Intent">
+ select intent_id intentId, intent_name intentName from intent
+ where intent_name like "%"#{intentName}"%"
+ </select>
+
</mapper> \ No newline at end of file