All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.db.user.UserGroupMapper.xml Maven / Gradle / Ivy

There is a newer version: 6.3.1
Show newest version
<?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.sonar.db.user.UserGroupMapper">

  <insert id="insert" parameterType="UserGroup" useGeneratedKeys="false">
    INSERT INTO groups_users (user_id, group_id)
    VALUES (#{userId}, #{groupId})
  </insert>

  <delete id="delete" parameterType="UserGroup">
    DELETE FROM groups_users
    <where>
      AND user_id = #{userId}
      AND group_id = #{groupId}
    </where>
  </delete>

  <delete id="deleteMembersByGroup" parameterType="long">
    DELETE FROM groups_users
    <where>
      AND group_id = #{groupId}
    </where>
  </delete>

</mapper>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy