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

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

<?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,jdbcType=BIGINT},
    #{groupId,jdbcType=BIGINT}
    )
  </insert>

  <delete id="delete" parameterType="map">
    delete from groups_users
    where user_id = #{userId,jdbcType=BIGINT} and
    group_id = #{groupId,jdbcType=BIGINT}
  </delete>

  <delete id="deleteByGroupId" parameterType="long">
    delete from groups_users
    where group_id = #{groupId,jdbcType=BIGINT}
  </delete>

</mapper>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy