}
@CheckForNull
- public IssueFilterDto selectById(Long id) {
+ public IssueFilterDto selectById(long id) {
SqlSession session = mybatis.openSession(false);
try {
session.getMapper(IssueFilterMapper.class);
}
}
- public void delete(Long id) {
+ public void delete(long id) {
SqlSession session = mybatis.openSession(false);
try {
getMapper(session).delete(id);
this.mybatis = mybatis;
}
- public IssueFilterFavouriteDto selectById(Long id) {
+ public IssueFilterFavouriteDto selectById(long id) {
SqlSession session = mybatis.openSession(false);
try {
return getMapper(session).selectById(id);
}
}
- public List<IssueFilterFavouriteDto> selectByFilterId(Long filterId) {
+ public List<IssueFilterFavouriteDto> selectByFilterId(long filterId) {
SqlSession session = mybatis.openSession(false);
try {
return getMapper(session).selectByFilterId(filterId);
}
}
- public void delete(Long id) {
+ public void delete(long id) {
SqlSession session = mybatis.openSession(false);
try {
getMapper(session).delete(id);
}
}
- public void deleteByFilterId(Long filterId) {
+ public void deleteByFilterId(long filterId) {
SqlSession session = mybatis.openSession(false);
try {
getMapper(session).deleteByFilterId(filterId);
public interface IssueFilterFavouriteMapper {
@CheckForNull
- IssueFilterFavouriteDto selectById(Long id);
+ IssueFilterFavouriteDto selectById(long id);
- List<IssueFilterFavouriteDto> selectByFilterId(@Param("filterId") Long filterId);
+ List<IssueFilterFavouriteDto> selectByFilterId(@Param("filterId") long filterId);
void insert(IssueFilterFavouriteDto filterFavourite);
- void delete(Long id);
+ void delete(long id);
- void deleteByFilterId(Long filterId);
+ void deleteByFilterId(long filterId);
}
public interface IssueFilterMapper {
@CheckForNull
- IssueFilterDto selectById(Long id);
+ IssueFilterDto selectById(long id);
List<IssueFilterDto> selectByUser(String user);
void update(IssueFilterDto filter);
- void delete(Long id);
+ void delete(long id);
}
void insert(NotificationQueueDto actionPlanDto);
- void delete(Long id);
+ void delete(long id);
List<NotificationQueueDto> findOldest(int count);
void update(PermissionTemplateDto permissionTemplate);
- void delete(Long templateId);
+ void delete(long templateId);
- void deleteUsersPermissions(Long templateId);
+ void deleteUsersPermissions(long templateId);
- void deleteGroupsPermissions(Long templateId);
+ void deleteGroupsPermissions(long templateId);
PermissionTemplateDto selectByKey(String templateKey);
p.kee as projectKey
</sql>
- <insert id="insert" parameterType="ActionPlanIssue" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
+ <insert id="insert" parameterType="ActionPlanIssue" keyColumn="id" useGeneratedKeys="true" keyProperty="id" lang="raw">
INSERT INTO action_plans (kee, name, description, user_login, project_id, status, deadline, created_at, updated_at)
VALUES (#{kee}, #{name}, #{description}, #{userLogin}, #{projectId}, #{status}, #{deadLine}, #{createdAt}, #{updatedAt})
</insert>
</where>
</select>
-</mapper>
\ No newline at end of file
+</mapper>
c.issue_change_creation_date as issueChangeCreationDate
</sql>
- <insert id="insert" parameterType="IssueChange" useGeneratedKeys="false" keyProperty="id">
+ <insert id="insert" parameterType="IssueChange" useGeneratedKeys="false" keyProperty="id" lang="raw">
INSERT INTO issue_changes (kee, issue_key, user_login, change_type, change_data, created_at, updated_at, issue_change_creation_date)
VALUES (#{kee}, #{issueKey}, #{userLogin}, #{changeType}, #{changeData}, #{createdAt}, #{updatedAt}, #{issueChangeCreationDate})
</insert>
- <delete id="delete" parameterType="string">
+ <delete id="delete" parameterType="string" lang="raw">
delete from issue_changes where kee=#{id}
</delete>
- <update id="update" parameterType="map">
+ <update id="update" parameterType="map" lang="raw">
update issue_changes set change_data=#{changeData}, updated_at=#{updatedAt} where kee=#{kee}
</update>
<select id="selectById" parameterType="long" resultType="issueFilterFavourite">
select <include refid="issueFilterFavouriteColumns"/>
from issue_filter_favourites filter_favourites
- <where>
- filter_favourites.id=#{id}
- </where>
+ where filter_favourites.id=#{id}
</select>
<select id="selectByFilterId" parameterType="long" resultType="issueFilterFavourite">
select <include refid="issueFilterFavouriteColumns"/>
from issue_filter_favourites filter_favourites
- <where>
- filter_favourites.issue_filter_id=#{filterId}
- </where>
+ where filter_favourites.issue_filter_id=#{filterId}
</select>
<insert id="insert" parameterType="issueFilterFavourite" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
VALUES (#{userLogin}, #{issueFilterId}, current_timestamp)
</insert>
- <delete id="delete" parameterType="int">
+ <delete id="delete" parameterType="long" lang="raw">
delete from issue_filter_favourites where id=#{id}
</delete>
- <delete id="deleteByFilterId" parameterType="int">
+ <delete id="deleteByFilterId" parameterType="long" lang="raw">
delete from issue_filter_favourites where issue_filter_id=#{issueFilterId}
</delete>
<select id="selectById" parameterType="long" resultType="IssueFilter">
select <include refid="issueFilterColumns"/>
from issue_filters filters
- <where>
- filters.id=#{id}
- </where>
+ where filters.id=#{id}
</select>
<select id="selectByUser" parameterType="String" resultType="IssueFilter">
select <include refid="issueFilterColumns"/>
from issue_filters filters
- <where>
- filters.user_login=#{user}
- </where>
+ where filters.user_login=#{user}
</select>
<select id="selectFavoriteFiltersByUser" parameterType="String" resultType="IssueFilter">
select <include refid="issueFilterColumns"/>
from issue_filters filters
inner join issue_filter_favourites fav on fav.issue_filter_id = filters.id
- <where>
- fav.user_login=#{user}
- </where>
+ where fav.user_login=#{user}
</select>
<select id="selectSharedFilters" parameterType="String" resultType="IssueFilter">
select <include refid="issueFilterColumns"/>
from issue_filters filters
- <where>
- and filters.shared=${_true}
- </where>
+ where filters.shared=${_true}
</select>
- <insert id="insert" parameterType="IssueFilter" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
+ <insert id="insert" parameterType="IssueFilter" keyColumn="id" useGeneratedKeys="true" keyProperty="id" lang="raw">
INSERT INTO issue_filters (name, user_login, shared, description, data, created_at, updated_at)
VALUES (#{name}, #{userLogin}, #{shared}, #{description}, #{data}, #{createdAt}, #{updatedAt})
</insert>
- <update id="update" parameterType="IssueFilter">
+ <update id="update" parameterType="IssueFilter" lang="raw">
update issue_filters set
name=#{name},
shared=#{shared},
where id=#{id}
</update>
- <delete id="delete" parameterType="int">
+ <delete id="delete" parameterType="long" lang="raw">
delete from issue_filters where id=#{id}
</delete>
</if>
</sql>
- <insert id="insert" parameterType="Issue" useGeneratedKeys="false" keyProperty="id">
+ <insert id="insert" parameterType="Issue" useGeneratedKeys="false" keyProperty="id" lang="raw">
INSERT INTO issues (kee, component_id, root_component_id, rule_id, action_plan_key, severity, manual_severity,
message, line, effort_to_fix, technical_debt, status,
resolution, checksum, reporter, assignee, author_login, issue_attributes, issue_creation_date, issue_update_date,
<!--
IMPORTANT - invariant columns can't be updated. See IssueDto#toDtoForUpdate()
-->
- <update id="update" parameterType="Issue">
+ <update id="update" parameterType="Issue" lang="raw">
update issues set
action_plan_key=#{actionPlanKey},
severity=#{severity},
<!--
IMPORTANT - invariant columns can't be updated. See IssueDto#toDtoForUpdate()
-->
- <update id="updateIfBeforeSelectedDate" parameterType="Issue">
+ <update id="updateIfBeforeSelectedDate" parameterType="Issue" lang="raw">
update issues set
action_plan_key=#{actionPlanKey},
severity=#{severity},
inner join rules r on r.id=i.rule_id
inner join projects p on p.id=i.component_id
inner join projects root on root.id=i.root_component_id
- <where>
- and i.kee=#{kee}
- </where>
+ where i.kee=#{kee}
</select>
- <select id="selectNonClosedIssuesByModule" parameterType="int" resultType="Issue">
+ <select id="selectNonClosedIssuesByModule" parameterType="int" resultType="Issue" lang="raw">
select
i.id,
i.kee as kee,
inner join (select p.id,p.kee from projects p where (p.root_id=#{id} and p.qualifier <> 'BRC') or (p.id=#{id})) p on p.id=i.component_id
inner join rules r on r.id=i.rule_id
left outer join projects root on root.id=i.root_component_id
- <where>
- and i.status <> 'CLOSED'
- </where>
+ where i.status <> 'CLOSED'
</select>
<select id="selectByIds" parameterType="map" resultType="Issue">
inner join rules r on r.id=i.rule_id
inner join projects p on p.id=i.component_id
inner join projects root on root.id=i.root_component_id
- <where>
- and i.id in
+ where i.id in
<foreach collection="list" open="(" close=")" item="id" separator=",">
#{id}
</foreach>
- </where>
</select>
<select id="selectIssues" parameterType="map" resultType="Issue">
FROM issues i
INNER JOIN projects p on p.id=i.component_id
INNER JOIN rules r on r.id=i.rule_id
- <where>
- AND p.kee=#{componentKey}
+ WHERE
+ p.kee=#{componentKey}
AND i.resolution IS NULL
<if test="createdAt != null">
AND i.issue_creation_date >= #{createdAt}
</if>
- </where>
</select>
<select id="findSeveritiesByComponent" parameterType="String" resultType="String">
FROM issues i
INNER JOIN projects on projects.id=i.component_id
INNER JOIN rules on rules.id=i.rule_id
- <where>
- AND projects.kee=#{componentKey}
+ WHERE
+ projects.kee=#{componentKey}
AND i.resolution IS NULL
<if test="createdAt != null">
AND i.issue_creation_date >= #{createdAt}
</if>
- </where>
</select>
</mapper>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.sonar.core.log.db.LogMapper">
- <insert id="insert" parameterType="Log" useGeneratedKeys="false">
- insert into logs
- (created_at, log_type,execution_time_field,user_login,data_field, log_message)
- values (#{createdAt}, #{type}, #{executionTime}, #{author}, #{data}, #{message})
- </insert>
- <select id="selectByKey" parameterType="map" resultType="Log">
- SELECT
- l.created_at as "createdAt",
- l.log_type as "type",
- l.execution_time_field as "executionTime",
- l.user_login as "author",
- l.data_field as "data",
- l.log_message as "message"
- FROM logs l
- WHERE l.created_at=#{key.createdAt}
- AND l.user_login=#{key.author}
- AND l.log_type=#{key.type}
+ <insert id="insert" parameterType="Log" useGeneratedKeys="false" lang="raw">
+ insert into logs
+ (created_at, log_type,execution_time_field,user_login,data_field, log_message)
+ values (#{createdAt}, #{type}, #{executionTime}, #{author}, #{data}, #{message})
+ </insert>
- </select>
+ <select id="selectByKey" parameterType="map" resultType="Log" lang="raw">
+ SELECT
+ l.created_at as "createdAt",
+ l.log_type as "type",
+ l.execution_time_field as "executionTime",
+ l.user_login as "author",
+ l.data_field as "data",
+ l.log_message as "message"
+ FROM logs l
+ WHERE l.created_at=#{key.createdAt}
+ AND l.user_login=#{key.author}
+ AND l.log_type=#{key.type}
+ </select>
- <select id="selectAll" parameterType="map" resultType="Log">
+ <select id="selectAll" parameterType="map" resultType="Log" lang="raw">
SELECT
l.created_at as "createdAt",
l.log_type as "type",
<mapper namespace="org.sonar.core.measure.db.MeasureFilterMapper">
- <select id="findSystemFilterByName" parameterType="string" resultType="MeasureFilter">
+ <select id="findSystemFilterByName" parameterType="string" resultType="MeasureFilter" lang="raw">
select id, name, user_id as "userId", shared, description, data, created_at as "createdAt", updated_at as "updatedAt"
from measure_filters WHERE user_id is null and name=#{id}
</select>
- <insert id="insert" parameterType="MeasureFilter" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
+ <insert id="insert" parameterType="MeasureFilter" keyColumn="id" useGeneratedKeys="true" keyProperty="id" lang="raw">
INSERT INTO measure_filters (name, user_id, shared, description, data, created_at, updated_at)
VALUES (#{name}, #{userId}, #{shared}, #{description}, #{data}, #{createdAt}, #{updatedAt})
</insert>
<mapper namespace="org.sonar.core.notification.db.NotificationQueueMapper">
- <insert id="insert" parameterType="NotificationQueue" useGeneratedKeys="false">
+ <insert id="insert" parameterType="NotificationQueue" useGeneratedKeys="false" lang="raw">
INSERT INTO notifications (data)
VALUES (#{data})
</insert>
- <delete id="delete" parameterType="long">
+ <delete id="delete" parameterType="long" lang="raw">
delete from notifications where id=#{id}
</delete>
- <select id="count" resultType="long">
+ <select id="count" resultType="long" lang="raw">
select count(*) from notifications
</select>
- <select id="findOldest" parameterType="int" resultType="NotificationQueue">
+ <select id="findOldest" parameterType="int" resultType="NotificationQueue" lang="raw">
select id, data
from notifications
order by id asc
</select>
<!-- SQL Server -->
- <select id="findOldest" parameterType="int" resultType="NotificationQueue" databaseId="mssql">
+ <select id="findOldest" parameterType="int" resultType="NotificationQueue" databaseId="mssql" lang="raw">
select top (#{count}) id, data
from notifications
order by id asc
</select>
<!-- Oracle -->
- <select id="findOldest" parameterType="int" resultType="NotificationQueue" databaseId="oracle">
+ <select id="findOldest" parameterType="int" resultType="NotificationQueue" databaseId="oracle" lang="raw">
select * from (select
id, data
from notifications
<mapper namespace="org.sonar.core.permission.PermissionTemplateMapper">
- <insert id="insert" parameterType="PermissionTemplate" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
+ <insert id="insert" parameterType="PermissionTemplate" keyColumn="id" useGeneratedKeys="true" keyProperty="id" lang="raw">
INSERT INTO permission_templates (name, kee, description, key_pattern, created_at, updated_at)
VALUES (#{name}, #{kee}, #{description}, #{keyPattern}, #{createdAt}, #{updatedAt})
</insert>
- <update id="update" parameterType="PermissionTemplate">
+ <update id="update" parameterType="PermissionTemplate" lang="raw">
UPDATE permission_templates
SET name = #{name}, description = #{description}, key_pattern = #{keyPattern}, updated_at = #{updatedAt}
WHERE id = #{id}
</update>
- <delete id="delete" parameterType="Long">
+ <delete id="delete" parameterType="long" lang="raw">
DELETE FROM permission_templates
WHERE id = #{templateId}
</delete>
- <delete id="deleteUsersPermissions" parameterType="Long">
+ <delete id="deleteUsersPermissions" parameterType="long" lang="raw">
DELETE FROM perm_templates_users
WHERE template_id = #{templateId}
</delete>
- <delete id="deleteGroupsPermissions" parameterType="Long">
+ <delete id="deleteGroupsPermissions" parameterType="long" lang="raw">
DELETE FROM perm_templates_groups
WHERE template_id = #{templateId}
</delete>
- <insert id="insertUserPermission" parameterType="PermissionTemplateUser">
+ <insert id="insertUserPermission" parameterType="PermissionTemplateUser" lang="raw">
INSERT INTO perm_templates_users (template_id, user_id, permission_reference, created_at, updated_at)
VALUES (#{templateId}, #{userId}, #{permission}, #{createdAt}, #{updatedAt})
</insert>
- <delete id="deleteUserPermission" parameterType="PermissionTemplateUser">
+ <delete id="deleteUserPermission" parameterType="PermissionTemplateUser" lang="raw">
DELETE FROM perm_templates_users
WHERE template_id = #{templateId}
AND user_id = #{userId}
AND permission_reference = #{permission}
</delete>
- <insert id="insertGroupPermission" parameterType="PermissionTemplateGroup">
+ <insert id="insertGroupPermission" parameterType="PermissionTemplateGroup" lang="raw">
INSERT INTO perm_templates_groups (template_id, group_id, permission_reference, created_at, updated_at)
VALUES (#{templateId}, #{groupId}, #{permission}, #{createdAt}, #{updatedAt})
</insert>
ORDER BY groups.name
</select>
- <select id="selectByKey" parameterType="String" resultType="PermissionTemplate">
+ <select id="selectByKey" parameterType="String" resultType="PermissionTemplate" lang="raw">
SELECT id, name, kee, description, key_pattern AS keyPattern, created_at AS createdAt, updated_at AS updatedAt
FROM permission_templates
WHERE kee = #{kee}
</select>
- <select id="selectAllPermissionTemplates" resultType="PermissionTemplate">
+ <select id="selectAllPermissionTemplates" resultType="PermissionTemplate" lang="raw">
SELECT id, name, kee, description, key_pattern AS keyPattern, created_at AS createdAt, updated_at AS updatedAt
FROM permission_templates
</select>
- <select id="selectTemplateUsersPermissions" parameterType="String" resultMap="fullPermissionsTemplateResult">
+ <select id="selectTemplateUsersPermissions" parameterType="String" resultMap="fullPermissionsTemplateResult" lang="raw">
SELECT pt.id AS template_id,
pt.name AS template_name,
pt.description AS template_description,
WHERE pt.kee = #{templateKey}
</select>
- <select id="selectTemplateGroupsPermissions" parameterType="String" resultMap="fullPermissionsTemplateResult">
+ <select id="selectTemplateGroupsPermissions" parameterType="String" resultMap="fullPermissionsTemplateResult" lang="raw">
SELECT pt.id AS template_id,
pt.name AS template_name,
pt.description AS template_description,
<mapper namespace="org.sonar.core.persistence.SchemaMigrationMapper">
- <select id="selectVersions" resultType="int">
+ <select id="selectVersions" resultType="int" lang="raw">
select * from schema_migrations
</select>
<mapper namespace="org.sonar.core.persistence.SemaphoreMapper">
- <insert id="initialize" parameterType="map" useGeneratedKeys="false">
+ <insert id="initialize" parameterType="map" useGeneratedKeys="false" lang="raw">
INSERT INTO semaphores (name, checksum, created_at, updated_at, locked_at)
VALUES (#{name}, #{checksum}, current_timestamp, current_timestamp, #{lockedAt})
</insert>
- <select id="now" resultType="Date">
+ <select id="now" resultType="Date" lang="raw">
select current_timestamp
</select>
- <select id="now" databaseId="oracle" resultType="Date">
+ <select id="now" databaseId="oracle" resultType="Date" lang="raw">
select current_timestamp from dual
</select>
</if>
</update>
- <delete id="release" parameterType="String">
+ <delete id="release" parameterType="String" lang="raw">
delete from semaphores where name=#{id}
</delete>
- <select id="selectSemaphore" parameterType="String" resultType="Semaphore">
- select s.id, s.name as name, s.locked_at as lockedAt, s.created_at as createdAt, s.updated_at as updatedAt from semaphores s where s.name=#{name}
+ <select id="selectSemaphore" parameterType="String" resultType="Semaphore" lang="raw">
+ select s.id, s.name as name, s.locked_at as lockedAt, s.created_at as createdAt, s.updated_at as updatedAt
+ from semaphores s where s.name=#{name}
</select>
- <update id="update" parameterType="String">
+ <update id="update" parameterType="String" lang="raw">
update semaphores
set updated_at = current_timestamp
where name=#{name}
<select id="selectEnablesAndNonManual" resultType="Rule">
select <include refid="selectColumns"/> from rules r
- <where>
- and r.status != 'REMOVED'
- and r.plugin_name != 'manual'
- </where>
+ where r.status != 'REMOVED' and r.plugin_name != 'manual'
</select>
<select id="selectById" parameterType="Integer" resultType="Rule">
<select id="selectBySubCharacteristicId" resultType="Rule">
select <include refid="selectColumns"/> from rules r
- <where>
- and (r.characteristic_id=#{subCharacteristicId} or r.default_characteristic_id=#{subCharacteristicId})
- </where>
+ where (r.characteristic_id=#{subCharacteristicId} or r.default_characteristic_id=#{subCharacteristicId})
</select>
<update id="update" parameterType="Rule">
#{noteUpdatedAt}, #{createdAt}, #{updatedAt})
</insert>
- <delete id="deleteParams" parameterType="Integer" >
+ <delete id="deleteParams" parameterType="Integer" lang="raw">
delete from active_rule_parameters where rules_parameter_id=#{id}
</delete>
<select id="selectParamByRuleAndKey" resultType="RuleParam">
SELECT <include refid="paramColumns"/>
FROM rules_parameters p
- <where>
- AND p.rule_id=#{ruleId}
- AND p.name=#{key}
- </where>
+ WHERE p.rule_id=#{ruleId} AND p.name=#{key}
</select>
- <delete id="deleteParameter" parameterType="Integer">
+ <delete id="deleteParameter" parameterType="Integer" lang="raw">
delete from rules_parameters where id=#{id}
</delete>
- <insert id="insertParameter" parameterType="RuleParam" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
+ <insert id="insertParameter" parameterType="RuleParam" keyColumn="id" useGeneratedKeys="true" keyProperty="id" lang="raw">
INSERT INTO rules_parameters (rule_id, name, param_type, default_value, description)
VALUES (#{ruleId}, #{name}, #{type}, #{defaultValue}, #{description})
</insert>
- <update id="updateParameter" parameterType="RuleParam">
+ <update id="updateParameter" parameterType="RuleParam" lang="raw">
UPDATE rules_parameters SET
name=#{name},
param_type=#{type},
WHERE id=#{id}
</update>
- <select id="selectKeysOfRulesUpdatedSince" resultType="map">
+ <select id="selectKeysOfRulesUpdatedSince" resultType="map" lang="raw">
SELECT r.plugin_name as "repoField", r.plugin_rule_key as "ruleField"
FROM rules r
WHERE r.updated_at IS NULL or r.updated_at >= #{id}
<select id="selectEnabledCharacteristics" parameterType="map" resultType="Characteristic">
select <include refid="characteristicColumns"/>
from characteristics c
- <where>
- and c.enabled=${_true}
- </where>
+ where c.enabled=${_true}
</select>
<select id="selectCharacteristics" parameterType="map" resultType="Characteristic">
VALUES (#{kee}, #{name}, #{parentId}, #{characteristicOrder}, #{enabled}, #{createdAt}, #{updatedAt})
</insert>
- <update id="update" parameterType="Characteristic">
+ <update id="update" parameterType="Characteristic" lang="raw">
update characteristics set
name=#{name},
parent_id=#{parentId},
where id=#{id}
</update>
- <select id="selectDeprecatedRequirements" resultType="RequirementMigration">
+ <select id="selectDeprecatedRequirements" resultType="RequirementMigration" lang="raw">
select id as "id",
parent_id as "parentId",
root_id as "rootId",
where rule_id IS NOT NULL
</select>
- <delete id="deleteRequirementsFromCharacteristicsTable">
+ <delete id="deleteRequirementsFromCharacteristicsTable" lang="raw">
DELETE FROM characteristics WHERE rule_id IS NOT NULL
</delete>
</mapper>
<mapper namespace="org.sonar.core.user.AuthorMapper">
- <select id="selectByLogin" parameterType="string" resultType="Author">
+ <select id="selectByLogin" parameterType="string" resultType="Author" lang="raw">
SELECT id, person_id AS personId, login, created_at AS createdAt, updated_at AS updatedAt
FROM authors WHERE login=#{id}
</select>
- <select id="countDeveloperLogins" parameterType="long" resultType="int">
+ <select id="countDeveloperLogins" parameterType="long" resultType="int" lang="raw">
SELECT count(id)
FROM authors WHERE person_id=#{id}
</select>
- <insert id="insert" parameterType="Author" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
+ <insert id="insert" parameterType="Author" keyColumn="id" useGeneratedKeys="true" keyProperty="id" lang="raw">
INSERT INTO authors (person_id, login, created_at, updated_at)
VALUES (#{personId}, #{login},
#{createdAt}, #{updatedAt})
</where>
</select>
- <insert id="insertGroupRole" parameterType="GroupRole" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
+ <insert id="insertGroupRole" parameterType="GroupRole" keyColumn="id" useGeneratedKeys="true" keyProperty="id" lang="raw">
INSERT INTO group_roles (group_id, resource_id, role)
VALUES (#{groupId}, #{resourceId}, #{role})
</insert>
- <insert id="insertUserRole" parameterType="UserRole" keyColumn="id" useGeneratedKeys="true" keyProperty="id">
+ <insert id="insertUserRole" parameterType="UserRole" keyColumn="id" useGeneratedKeys="true" keyProperty="id" lang="raw">
INSERT INTO user_roles (user_id, resource_id, role)
VALUES (#{userId}, #{resourceId}, #{role})
</insert>