this.system = system;
}
- /**
- * @deprecated replaced by {@link #selectByName(DbSession, String, String)}
- */
- @Deprecated
- @CheckForNull
- public GroupDto selectByName(DbSession session, String key) {
- return mapper(session).selectByKey(key);
- }
-
/**
* @param dbSession
* @param organizationUuid non-null UUID of organization (no support of "default" organization)
public interface GroupMapper {
- @CheckForNull
- GroupDto selectByKey(String name);
-
@CheckForNull
GroupDto selectById(long groupId);
</foreach>
</select>
- <select id="selectByKey" parameterType="string" resultType="Group">
- SELECT
- <include refid="groupColumns"/>
- FROM groups g
- where g.name=#{id,jdbcType=BIGINT}
- </select>
-
<select id="selectById" parameterType="long" resultType="Group">
SELECT
<include refid="groupColumns"/>