]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3645 remove useless jdbc types in MyBatis mappers
authorDavid Gageot <david@gageot.net>
Wed, 11 Jul 2012 15:08:23 +0000 (17:08 +0200)
committerDavid Gageot <david@gageot.net>
Wed, 11 Jul 2012 15:38:40 +0000 (17:38 +0200)
28 files changed:
sonar-core/src/main/resources/org/sonar/core/dashboard/ActiveDashboardMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/dashboard/ActiveDashboardMapper.xml
sonar-core/src/main/resources/org/sonar/core/dashboard/DashboardMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/dashboard/DashboardMapper.xml
sonar-core/src/main/resources/org/sonar/core/dashboard/WidgetMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/dashboard/WidgetMapper.xml
sonar-core/src/main/resources/org/sonar/core/dashboard/WidgetPropertyMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/dashboard/WidgetPropertyMapper.xml
sonar-core/src/main/resources/org/sonar/core/filter/CriterionMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/filter/CriterionMapper.xml
sonar-core/src/main/resources/org/sonar/core/filter/FilterColumnMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/filter/FilterColumnMapper.xml
sonar-core/src/main/resources/org/sonar/core/filter/FilterMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/filter/FilterMapper.xml
sonar-core/src/main/resources/org/sonar/core/properties/PropertiesMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/properties/PropertiesMapper.xml
sonar-core/src/main/resources/org/sonar/core/resource/ResourceIndexerMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/resource/ResourceIndexerMapper.xml
sonar-core/src/main/resources/org/sonar/core/resource/ResourceKeyUpdaterMapper.xml
sonar-core/src/main/resources/org/sonar/core/resource/ResourceMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/resource/ResourceMapper.xml
sonar-core/src/main/resources/org/sonar/core/review/ReviewCommentMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/review/ReviewCommentMapper.xml
sonar-core/src/main/resources/org/sonar/core/review/ReviewMapper.xml
sonar-core/src/main/resources/org/sonar/core/user/AuthorMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/user/AuthorMapper.xml
sonar-core/src/main/resources/org/sonar/core/user/RoleMapper-oracle.xml
sonar-core/src/main/resources/org/sonar/core/user/RoleMapper.xml

index 726c84afbc0b659e803272de8fbb17c58e6ba563..4c6acb6521850d6d605c64d71660a02b3d02cfa8 100644 (file)
@@ -8,7 +8,7 @@
         select active_dashboards_seq.NEXTVAL from DUAL
     </selectKey>
     INSERT INTO active_dashboards (id, dashboard_id, user_id, order_index)
-    VALUES (#{id}, #{dashboardId}, #{userId, jdbcType=FLOAT}, #{orderIndex})
+    VALUES (#{id}, #{dashboardId}, #{userId}, #{orderIndex})
   </insert>
 
   <select id="selectMaxOrderIndexForNullUser" resultType="Integer">
index fad6ff5c9bdb77e23c6d2720fa33b6f9b1f7f959..bdd5b01c8905e9547a4ee4a8430810000b5e48da 100644 (file)
@@ -5,7 +5,7 @@
 
   <insert id="insert" parameterType="ActiveDashboard" useGeneratedKeys="true" keyProperty ="id">
     INSERT INTO active_dashboards (dashboard_id, user_id, order_index)
-    VALUES (#{dashboardId}, #{userId, jdbcType=FLOAT}, #{orderIndex, jdbcType=INTEGER})
+    VALUES (#{dashboardId}, #{userId}, #{orderIndex})
   </insert>
 
   <select id="selectMaxOrderIndexForNullUser" resultType="Integer">
index c31679db2325c0b9d02e763f02ea4cade275a2f5..6be6dbaa3267b6b3a7982417819f269c112a83f8 100644 (file)
@@ -13,8 +13,8 @@
       select dashboards_seq.NEXTVAL from DUAL
     </selectKey>
     INSERT INTO dashboards (id, user_id, name, description, column_layout, shared, is_global, created_at, updated_at)
-    VALUES (#{id}, #{userId, jdbcType=FLOAT}, #{name, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR},
-    #{columnLayout, jdbcType=INTEGER}, #{shared}, #{global}, #{createdAt, jdbcType=TIMESTAMP}, #{updatedAt, jdbcType=TIMESTAMP})
+    VALUES (#{id}, #{userId}, #{name}, #{description},
+    #{columnLayout}, #{shared}, #{global}, #{createdAt}, #{updatedAt})
   </insert>
 
 </mapper>
index 00e32a3785f5bdc4d1ed22290520000902492420..8fceb2402ac56b59554833e502a3f92b841de712 100644 (file)
@@ -10,8 +10,8 @@
 
   <insert id="insert" parameterType="Dashboard" useGeneratedKeys="true" keyProperty="id">
     INSERT INTO dashboards (user_id, name, description, column_layout, shared, is_global, created_at, updated_at)
-    VALUES (#{userId, jdbcType=FLOAT}, #{name, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR},
-    #{columnLayout, jdbcType=INTEGER}, #{shared}, #{global}, #{createdAt, jdbcType=TIMESTAMP}, #{updatedAt, jdbcType=TIMESTAMP})
+    VALUES (#{userId}, #{name}, #{description},
+    #{columnLayout}, #{shared}, #{global}, #{createdAt}, #{updatedAt})
   </insert>
 
 </mapper>
index 1cb58c0ab3b1bf900c76b3425494a4d693310480..28eb783b122338df34b136ad45f74545b3283b00 100644 (file)
@@ -8,8 +8,8 @@
         select widgets_seq.NEXTVAL from DUAL
     </selectKey>
     INSERT INTO widgets (id, dashboard_id, widget_key, name, description, column_index, row_index, configured, created_at, updated_at, resource_id)
-    VALUES (#{id}, #{dashboardId}, #{key}, #{name, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR}, #{columnIndex, jdbcType=INTEGER}, 
-            #{rowIndex, jdbcType=INTEGER}, #{configured}, #{createdAt, jdbcType=TIMESTAMP}, #{updatedAt, jdbcType=TIMESTAMP}, #{resourceId, jdbcType=INTEGER})
+    VALUES (#{id}, #{dashboardId}, #{key}, #{name}, #{description}, #{columnIndex}, 
+            #{rowIndex}, #{configured}, #{createdAt}, #{updatedAt}, #{resourceId})
   </insert>
 
 </mapper>
index c9e42294df87fab169b4b87511d774219be31d27..4f60fdc364eb48ba25623f9d1cae9871f47d3711 100644 (file)
@@ -5,8 +5,8 @@
 
   <insert id="insert" parameterType="Widget" useGeneratedKeys="true" keyProperty ="id">
     INSERT INTO widgets (dashboard_id, widget_key, name, description, column_index, row_index, configured, created_at, updated_at, resource_id)
-    VALUES (#{dashboardId}, #{key}, #{name, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR}, #{columnIndex, jdbcType=INTEGER}, 
-            #{rowIndex, jdbcType=INTEGER}, #{configured}, #{createdAt, jdbcType=TIMESTAMP}, #{updatedAt, jdbcType=TIMESTAMP}, #{resourceId, jdbcType=INTEGER})
+    VALUES (#{dashboardId}, #{key}, #{name}, #{description}, #{columnIndex}, 
+            #{rowIndex}, #{configured}, #{createdAt}, #{updatedAt}, #{resourceId})
   </insert>
 
 </mapper>
index 4bf30699d67f3888facb590a578ad2913559c75b..2d149bbff856f8bbf9670dadfe628c00502d0a9e 100644 (file)
@@ -5,7 +5,7 @@
 
   <insert id="insert" parameterType="WidgetProperty" keyColumn="id" useGeneratedKeys="false" keyProperty="id">
     INSERT INTO widget_properties (id, widget_id, kee, text_value)
-    VALUES (widget_properties_seq.NEXTVAL, #{widgetId}, #{key, jdbcType=VARCHAR}, #{value, jdbcType=VARCHAR})
+    VALUES (widget_properties_seq.NEXTVAL, #{widgetId}, #{key}, #{value})
   </insert>
 
 </mapper>
index 99abdec67f0f34d40cf1d91c0f6c161ae619128e..73b9156029dbba5bc30c442f3d3144c2628a3b89 100644 (file)
@@ -5,7 +5,7 @@
 
   <insert id="insert" parameterType="WidgetProperty" useGeneratedKeys="true" keyProperty="id">
     INSERT INTO widget_properties (widget_id, kee, text_value)
-    VALUES (#{widgetId}, #{key, jdbcType=VARCHAR}, #{value, jdbcType=VARCHAR})
+    VALUES (#{widgetId}, #{key}, #{value})
   </insert>
 
 </mapper>
index a3fdba730420da54adf5dec2986176411f70dcef..1196f6d0fac2f3ce921184e3d94bca95cef40827 100644 (file)
@@ -8,7 +8,7 @@
       select criteria_seq.NEXTVAL from DUAL
     </selectKey>
     INSERT INTO criteria (id, filter_id, family, kee, operator, value, text_value, variation)
-    VALUES (#{id}, #{filterId, jdbcType=INTEGER}, #{family, jdbcType=VARCHAR}, #{key, jdbcType=VARCHAR}, #{operator, jdbcType=VARCHAR}, #{value, jdbcType=FLOAT}, #{textValue, jdbcType=VARCHAR}, #{variation})
+    VALUES (#{id}, #{filterId}, #{family}, #{key}, #{operator}, #{value}, #{textValue}, #{variation})
   </insert>
 
 </mapper>
index 09c4769e9f876e16680652b7c2476d8cb54a9adc..e90aa3377743ff4f1ff0edb55b41b321f364a292 100644 (file)
@@ -5,8 +5,8 @@
 
   <insert id="insert" parameterType="Criterion" useGeneratedKeys="true" keyProperty="id">
     INSERT INTO criteria (filter_id, family, kee, operator, value, text_value, variation)
-    VALUES (#{filterId, jdbcType=INTEGER}, #{family, jdbcType=VARCHAR}, #{key, jdbcType=VARCHAR}, #{operator, jdbcType=VARCHAR}, #{value, jdbcType=FLOAT},
-     #{textValue, jdbcType=VARCHAR}, #{variation})
+    VALUES (#{filterId}, #{family}, #{key}, #{operator}, #{value},
+     #{textValue}, #{variation})
   </insert>
 
 </mapper>
index 87a7212219f7513adbd07165069ad480900ce8ce..37fb49c777dcba5aed35ab15b3319e02c479290e 100644 (file)
@@ -8,8 +8,8 @@
         select filter_columns_seq.NEXTVAL from DUAL
     </selectKey>
     INSERT INTO filter_columns (id, filter_id, family, kee, sort_direction, order_index, variation)
-    VALUES (#{id}, #{filterId, jdbcType=INTEGER}, #{family, jdbcType=VARCHAR}, #{key, jdbcType=VARCHAR}, #{sortDirection, jdbcType=VARCHAR},
-     #{orderIndex, jdbcType=INTEGER}, #{variation})
+    VALUES (#{id}, #{filterId}, #{family}, #{key}, #{sortDirection},
+     #{orderIndex}, #{variation})
   </insert>
 
 </mapper>
index a7f71467f1455d9625a3fc12ec3b41bdb546519b..c1d01509dda7a352cc09f38fef5f5588c9af7569 100644 (file)
@@ -5,8 +5,8 @@
 
   <insert id="insert" parameterType="FilterColumn" useGeneratedKeys="true" keyProperty="id">
     INSERT INTO filter_columns (filter_id, family, kee, sort_direction, order_index, variation)
-    VALUES (#{filterId, jdbcType=INTEGER}, #{family, jdbcType=VARCHAR}, #{key, jdbcType=VARCHAR}, #{sortDirection, jdbcType=VARCHAR},
-     #{orderIndex, jdbcType=INTEGER}, #{variation})
+    VALUES (#{filterId}, #{family}, #{key}, #{sortDirection},
+     #{orderIndex}, #{variation})
   </insert>
 
 </mapper>
index 7a2c3772964b67d723f47c1c6a5f14bbed852850..9235b437a7fcc84c39bb7bdd09114abfa1bf1f50 100644 (file)
@@ -13,8 +13,8 @@
         select filters_seq.NEXTVAL from DUAL
     </selectKey>
     INSERT INTO filters (id, name, kee, user_id, shared, favourites, resource_id, default_view, page_size, period_index)
-    VALUES (#{id}, #{name, jdbcType=VARCHAR}, #{key, jdbcType=VARCHAR}, #{userId, jdbcType=FLOAT}, #{shared}, #{favourites}, #{resourceId, jdbcType=INTEGER}, #{defaultView, jdbcType=VARCHAR},
-     #{pageSize, jdbcType=INTEGER}, #{periodIndex, jdbcType=INTEGER})
+    VALUES (#{id}, #{name}, #{key}, #{userId}, #{shared}, #{favourites}, #{resourceId}, #{defaultView},
+     #{pageSize}, #{periodIndex})
   </insert>
 
 </mapper>
index 41aa28f855e686326823844a8e14931f6e0d7912..782a76c67c47650986c33ba2fb3292f53bafd335 100644 (file)
@@ -10,8 +10,8 @@
 
   <insert id="insert" parameterType="Filter" useGeneratedKeys="true" keyProperty="id">
     INSERT INTO filters (name, kee, user_id, shared, favourites, resource_id, default_view, page_size, period_index)
-    VALUES (#{name, jdbcType=VARCHAR}, #{key, jdbcType=VARCHAR}, #{userId, jdbcType=FLOAT}, #{shared}, #{favourites}, #{resourceId, jdbcType=INTEGER}, #{defaultView, jdbcType=VARCHAR},
-     #{pageSize, jdbcType=INTEGER}, #{periodIndex, jdbcType=INTEGER})
+    VALUES (#{name}, #{key}, #{userId}, #{shared}, #{favourites}, #{resourceId}, #{defaultView},
+     #{pageSize}, #{periodIndex})
   </insert>
 
 </mapper>
index 75b1c884fe18fa0b59603f4c6e9c2e011abe7d58..3f7d6add7b0da3244ffc3f886b0df674085f0487 100644 (file)
@@ -47,7 +47,7 @@
   </select>
 
   <update id="update" parameterType="Property">
-    update properties set text_value = #{value, jdbcType=VARCHAR} where id = #{id}
+    update properties set text_value = #{value} where id = #{id}
   </update>
 
   <insert id="insert" parameterType="Property" useGeneratedKeys="true" keyProperty="id">
@@ -55,7 +55,7 @@
       select properties_seq.NEXTVAL from DUAL
     </selectKey>
     INSERT INTO properties (id, prop_key, resource_id, user_id, text_value)
-    VALUES (#{id}, #{key, jdbcType=VARCHAR}, #{resourceId, jdbcType=INTEGER}, #{userId, jdbcType=INTEGER}, #{value, jdbcType=VARCHAR})
+    VALUES (#{id}, #{key}, #{resourceId}, #{userId}, #{value})
   </insert>
 
 </mapper>
index 84858c1fcaab2653d19b410108629576e0d468f1..78b22358d0b0683a2aaa8c385e2bba14dba96ae7 100644 (file)
   </select>
 
   <update id="update" parameterType="Property">
-    update properties set text_value = #{value, jdbcType=VARCHAR} where id = #{id}
+    update properties set text_value = #{value} where id = #{id}
   </update>
 
   <insert id="insert" parameterType="Property" useGeneratedKeys="true" keyProperty="id">
     INSERT INTO properties (prop_key, resource_id, user_id, text_value)
-    VALUES (#{key, jdbcType=VARCHAR}, #{resourceId, jdbcType=INTEGER}, #{userId, jdbcType=INTEGER}, #{value, jdbcType=VARCHAR})
+    VALUES (#{key}, #{resourceId}, #{userId}, #{value})
   </insert>
 
 </mapper>
index 033e59fd0ecf986c3a8a291051dfae418fc67f7f..f128b550999b7c9c031e624e35bf6f1d931388d7 100644 (file)
@@ -63,8 +63,8 @@
       select resource_index_seq.NEXTVAL from DUAL
     </selectKey>
     insert into resource_index (id, kee, position, name_size, resource_id, root_project_id, qualifier)
-    values (#{id}, #{key, jdbcType=VARCHAR}, #{position, jdbcType=INTEGER}, #{nameSize, jdbcType=INTEGER},
-    #{resourceId, jdbcType=BIGINT}, #{rootProjectId, jdbcType=BIGINT}, #{qualifier, jdbcType=VARCHAR})
+    values (#{id}, #{key}, #{position}, #{nameSize},
+    #{resourceId}, #{rootProjectId}, #{qualifier})
   </insert>
 </mapper>
 
index faf58386640c9d9aca706633ce37b2ee1c8d0cf6..33cb98db05976b1f972925fbf11b895a448ca524 100644 (file)
@@ -60,8 +60,8 @@
 
   <insert id="insert" parameterType="ResourceIndex" useGeneratedKeys="false">
     insert into resource_index (kee, position, name_size, resource_id, root_project_id, qualifier)
-    values (#{key, jdbcType=VARCHAR}, #{position, jdbcType=INTEGER}, #{nameSize, jdbcType=INTEGER},
-    #{resourceId, jdbcType=BIGINT}, #{rootProjectId, jdbcType=BIGINT}, #{qualifier, jdbcType=VARCHAR})
+    values (#{key}, #{position}, #{nameSize},
+    #{resourceId}, #{rootProjectId}, #{qualifier})
   </insert>
 </mapper>
 
index 2fc0a3f423100e6483dca67fe4024fa517d7f4a2..3995965d6c24d58c43826b697c56c06b2089e9e7 100644 (file)
@@ -30,7 +30,7 @@
   
   <update id="update" parameterType="Resource">
     update projects 
-    set kee = #{key, jdbcType=VARCHAR}
+    set kee = #{key}
     where id = #{id}
   </update>
   
index b2be3b7858df3f4e8f530a8fd52449c7f291f612..4f8ff7a8d1a45010eed69c5bf5e93d32883e1bd4 100644 (file)
     insert into projects
     (id, name, long_name, description, scope, qualifier, kee, language, root_id, copy_resource_id, person_id, profile_id, enabled)
     values (
-    #{id}, #{name, jdbcType=VARCHAR}, #{longName, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR}, #{scope, jdbcType=VARCHAR}, #{qualifier, jdbcType=VARCHAR},
-    #{key, jdbcType=VARCHAR}, #{language, jdbcType=VARCHAR}, #{rootId, jdbcType=INTEGER}, #{copyResourceId, jdbcType=INTEGER},
-    #{personId, jdbcType=INTEGER}, #{profileId, jdbcType=INTEGER}, #{enabled, jdbcType=BOOLEAN}
+    #{id}, #{name}, #{longName}, #{description}, #{scope}, #{qualifier},
+    #{key}, #{language}, #{rootId}, #{copyResourceId},
+    #{personId}, #{profileId}, #{enabled}
     )
   </insert>
 
   <update id="update" parameterType="Resource">
-    update projects set name=#{name, jdbcType=VARCHAR}, long_name=#{longName, jdbcType=VARCHAR}, description=#{description, jdbcType=VARCHAR},
-    scope=#{scope, jdbcType=VARCHAR}, qualifier=#{qualifier, jdbcType=VARCHAR}, kee=#{key, jdbcType=VARCHAR},
-    language=#{language, jdbcType=VARCHAR}, root_id=#{rootId, jdbcType=INTEGER}, copy_resource_id=#{copyResourceId, jdbcType=INTEGER},
-    person_id=#{personId, jdbcType=INTEGER}, profile_id=#{profileId, jdbcType=INTEGER}, enabled=#{enabled, jdbcType=BOOLEAN} where id=#{id,jdbcType=INTEGER}
+    update projects set name=#{name}, long_name=#{longName}, description=#{description},
+    scope=#{scope}, qualifier=#{qualifier}, kee=#{key},
+    language=#{language}, root_id=#{rootId}, copy_resource_id=#{copyResourceId},
+    person_id=#{personId}, profile_id=#{profileId}, enabled=#{enabled} where id=#{id}
   </update>
 </mapper>
 
index 728cb9dda0f60f1a4ba4b13b8593471620b633bb..2f4fc2735e27cf3bc5ecbc29968f0f1912e9851e 100644 (file)
     insert into projects
     (name, long_name, description, scope, qualifier, kee, language, root_id, copy_resource_id, person_id, profile_id, enabled)
     values (
-    #{name, jdbcType=VARCHAR}, #{longName, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR}, #{scope, jdbcType=VARCHAR}, #{qualifier, jdbcType=VARCHAR},
-    #{key, jdbcType=VARCHAR}, #{language, jdbcType=VARCHAR}, #{rootId, jdbcType=INTEGER}, #{copyResourceId, jdbcType=INTEGER},
-    #{personId, jdbcType=INTEGER}, #{profileId, jdbcType=INTEGER}, #{enabled, jdbcType=BOOLEAN}
+    #{name}, #{longName}, #{description}, #{scope}, #{qualifier},
+    #{key}, #{language}, #{rootId}, #{copyResourceId},
+    #{personId}, #{profileId}, #{enabled}
     )
   </insert>
 
   <update id="update" parameterType="Resource">
-    update projects set name=#{name, jdbcType=VARCHAR}, long_name=#{longName, jdbcType=VARCHAR}, description=#{description, jdbcType=VARCHAR},
-    scope=#{scope, jdbcType=VARCHAR}, qualifier=#{qualifier, jdbcType=VARCHAR}, kee=#{key, jdbcType=VARCHAR},
-    language=#{language, jdbcType=VARCHAR}, root_id=#{rootId, jdbcType=INTEGER}, copy_resource_id=#{copyResourceId, jdbcType=INTEGER},
-    person_id=#{personId, jdbcType=INTEGER}, profile_id=#{profileId, jdbcType=INTEGER}, enabled=#{enabled, jdbcType=BOOLEAN} where id=#{id,jdbcType=INTEGER}
+    update projects set name=#{name}, long_name=#{longName}, description=#{description},
+    scope=#{scope}, qualifier=#{qualifier}, kee=#{key},
+    language=#{language}, root_id=#{rootId}, copy_resource_id=#{copyResourceId},
+    person_id=#{personId}, profile_id=#{profileId}, enabled=#{enabled} where id=#{id}
   </update>
 </mapper>
 
index adcd357a9a832e74993c75564676e80b7aa34509..d6bf54dfe639e60c7d828dc6a7bb2d1f64669ef4 100644 (file)
@@ -8,8 +8,8 @@
         select review_comments_seq.NEXTVAL from DUAL
     </selectKey>    
     INSERT INTO review_comments (id, review_id, user_id, review_text, created_at, updated_at)
-    VALUES (#{id}, #{reviewId, jdbcType=BIGINT}, #{userId, jdbcType=BIGINT}, #{text, jdbcType=VARCHAR},
-            #{createdAt, jdbcType=TIMESTAMP}, #{updatedAt, jdbcType=TIMESTAMP})
+    VALUES (#{id}, #{reviewId}, #{userId}, #{text},
+            #{createdAt}, #{updatedAt})
   </insert>
 
 </mapper>
index 96a3111f7c1d0f5b128475a491de655dd1efbb27..3fc4f19c9a4cf8b9419bf43a0d75d6b2bfedeb7e 100644 (file)
@@ -5,8 +5,8 @@
 
   <insert id="insert" parameterType="ReviewComment" useGeneratedKeys="true" keyProperty ="id">
     INSERT INTO review_comments (review_id, user_id, review_text, created_at, updated_at)
-    VALUES (#{reviewId, jdbcType=BIGINT}, #{userId, jdbcType=BIGINT}, #{text, jdbcType=VARCHAR},
-            #{createdAt, jdbcType=TIMESTAMP}, #{updatedAt, jdbcType=TIMESTAMP})
+    VALUES (#{reviewId}, #{userId}, #{text},
+            #{createdAt}, #{updatedAt})
   </insert>
 
 </mapper>
index 733491de31e5638b69a90689158a223e5d284cf6..b9f400d5d301168cade3d09f505361e44c92553f 100644 (file)
 
   <update id="update" parameterType="Review">
     update reviews set
-    created_at=#{createdAt, jdbcType=TIMESTAMP},
-    updated_at=#{updatedAt, jdbcType=TIMESTAMP},
-    user_id=#{userId, jdbcType=INTEGER},
-    assignee_id=#{assigneeId, jdbcType=INTEGER},
-    status=#{status, jdbcType=VARCHAR},
-    resolution=#{resolution, jdbcType=VARCHAR},
-    title=#{title, jdbcType=VARCHAR},
-    severity=#{severity, jdbcType=VARCHAR},
-    rule_failure_permanent_id=#{violationPermanentId, jdbcType=INTEGER},
-    project_id=#{projectId, jdbcType=INTEGER},
-    resource_id=#{resourceId, jdbcType=INTEGER},
-    resource_line=#{line, jdbcType=INTEGER},
-    rule_id=#{ruleId, jdbcType=INTEGER},
+    created_at=#{createdAt},
+    updated_at=#{updatedAt},
+    user_id=#{userId},
+    assignee_id=#{assigneeId},
+    status=#{status},
+    resolution=#{resolution},
+    title=#{title},
+    severity=#{severity},
+    rule_failure_permanent_id=#{violationPermanentId},
+    project_id=#{projectId},
+    resource_id=#{resourceId},
+    resource_line=#{line},
+    rule_id=#{ruleId},
     manual_severity=#{manualSeverity},
     manual_violation=#{manualViolation},
-    data=#{data, jdbcType=VARCHAR}
+    data=#{data}
     where id = #{id}
   </update>
 
index ab99f615cf72fe7c53112dc339ff5b71ae1f66ae..e0b191c4a8803b5848ece352917dcb9dee982de3 100644 (file)
@@ -18,8 +18,8 @@
       select authors_seq.NEXTVAL from DUAL
     </selectKey>
     INSERT INTO authors (id, person_id, login, created_at, updated_at)
-    VALUES (#{id}, #{personId, jdbcType=INTEGER}, #{login, jdbcType=VARCHAR},
-    #{createdAt, jdbcType=TIMESTAMP}, #{updatedAt, jdbcType=TIMESTAMP})
+    VALUES (#{id}, #{personId}, #{login},
+    #{createdAt}, #{updatedAt})
   </insert>
 
 </mapper>
index dd8dadac0decc32da97556da9909a9153616a6b6..96e1959845f6b759c518b73918409bae786b8f78 100644 (file)
@@ -15,8 +15,8 @@
 
   <insert id="insert" parameterType="Author" useGeneratedKeys="true" keyProperty="id">
     INSERT INTO authors (person_id, login, created_at, updated_at)
-    VALUES (#{personId, jdbcType=INTEGER}, #{login, jdbcType=VARCHAR},
-    #{createdAt, jdbcType=TIMESTAMP}, #{updatedAt, jdbcType=TIMESTAMP})
+    VALUES (#{personId}, #{login},
+    #{createdAt}, #{updatedAt})
   </insert>
 
 </mapper>
index e77b822bcefab562faf17fcf69657359110cfd7a..996fc4fb4d5b31b5f16cc8d15fa0d20d598f61ee 100644 (file)
@@ -8,7 +8,7 @@
       select group_roles_seq.NEXTVAL from DUAL
     </selectKey>
     INSERT INTO group_roles (id, group_id, resource_id, role)
-    VALUES (#{id}, #{groupId, jdbcType=INTEGER}, #{resourceId, jdbcType=INTEGER}, #{role, jdbcType=VARCHAR})
+    VALUES (#{id}, #{groupId}, #{resourceId}, #{role})
   </insert>
 
   <insert id="insertUserRole" parameterType="UserRole" useGeneratedKeys="true" keyProperty="id">
@@ -16,7 +16,7 @@
       select user_roles_seq.NEXTVAL from DUAL
     </selectKey>
     INSERT INTO user_roles (id, user_id, resource_id, role)
-    VALUES (#{id}, #{userId, jdbcType=INTEGER}, #{resourceId, jdbcType=INTEGER}, #{role, jdbcType=VARCHAR})
+    VALUES (#{id}, #{userId}, #{resourceId}, #{role})
   </insert>
 
   <delete id="deleteGroupRolesByResourceId" parameterType="long">
index be2fad12465a0c8e56750bb9477b5d56302ceafa..d553b81ae460bcd0721ce559505fed5792af1975 100644 (file)
@@ -5,12 +5,12 @@
 
   <insert id="insertGroupRole" parameterType="GroupRole" useGeneratedKeys="true" keyProperty="id">
     INSERT INTO group_roles (group_id, resource_id, role)
-    VALUES (#{groupId, jdbcType=INTEGER}, #{resourceId, jdbcType=INTEGER}, #{role, jdbcType=VARCHAR})
+    VALUES (#{groupId}, #{resourceId}, #{role})
   </insert>
 
   <insert id="insertUserRole" parameterType="UserRole" useGeneratedKeys="true" keyProperty="id">
     INSERT INTO user_roles (user_id, resource_id, role)
-    VALUES (#{userId, jdbcType=INTEGER}, #{resourceId, jdbcType=INTEGER}, #{role, jdbcType=VARCHAR})
+    VALUES (#{userId}, #{resourceId}, #{role})
   </insert>
 
   <delete id="deleteGroupRolesByResourceId" parameterType="long">