mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
26495: Removed svn:mergeinfo from 'root' 26520: Fixed targetSchema values for merged-in patches 26521: ALF-5260 - RINF 06: Switch from iBatis to MyBatis - fix for selectChildAssocsWithoutParentAssocsOfType and selectChildAssocsByChildTypes 26531: Removed obsolete code to fix compilation error following OpenCMIS updates. 26551: Patch to remove old alf_*attribute* tables (ALF-3192, ALF-6724) 26555: Fixed ALF-7960: Upgrade incorrectly reports zero patches run - Use JdbcType.TIMESTAMP instead of DATE to prevent time truncation in alf_applied_patch 26557: Patch to remove old alf_*attribute* tables (ALF-3192, ALF-6724) - Support for all DBs - Included removal of sequence - Uses DAO hierarchical bean override for sequence removal 26577: SWIFT: fix AuthenticationTest.* fails - fallout from r25966 - keep "validate" as R/O but put back txn propogation (as before) 26583: SWIFT build: fix DefaultTypeConverterTest.testInterConversions() - fallout from OpenCMIS merge (r25458) 26615: Remove svn:mergeinfo from root (again) 26646: Test case addition related to ALF-619. setMembership() method on SiteService needs to check that the given site 'role' is valid. This issue was not reproduced. I'm checking in the test code I used to ensure that invalid roles are rejected. It'll keep the exception type stable from now on too (not implying it wasn't stable in the past!) 26744: ALF-8061 - MyBatis: fix mappings for Oracle (nullable parameters) - Activities, Audit, AVM 26745: Created NodeLocatorService which allows access to registered NodeLocators. Also created node-location.get webscript which provides access to the NodeLocationService via a RESTful webscript. 26774: Fixing failing NodeLocationServiceImplTest. 26799: ALF-8061 - MyBatis: fix mappings for Oracle (nullable parameters) - follow-on to r26744 26809: Fixed ALF-8157: Method removeSeconaryChildAssociation() in NodeService is spelt incorrectly - Old method is Deprecated and final - Redirect implementations to correctly-named method 26869: Javadoc update for LockService. 28254: ALF-8805: RINF 40: Lucene Removal: PersonService API - follow-on (remove unused SearchService) Note: Tested repo upgrade from V3.3 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28282 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
99 lines
4.3 KiB
XML
99 lines
4.3 KiB
XML
<?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="alfresco.appliedpatch">
|
|
|
|
<!--NOTE: MyBatis #224 - eg. Oracle -->
|
|
|
|
<!-- -->
|
|
<!-- Result Maps -->
|
|
<!-- -->
|
|
|
|
<resultMap id="result_AppliedPatch" type="AppliedPatch">
|
|
<result property="id" column="id" jdbcType="VARCHAR" javaType="string"/>
|
|
<result property="description" column="description" jdbcType="VARCHAR" javaType="string"/>
|
|
<result property="fixesFromSchema" column="fixes_from_schema" jdbcType="INTEGER" javaType="int"/>
|
|
<result property="fixesToSchema" column="fixes_to_schema" jdbcType="INTEGER" javaType="int"/>
|
|
<result property="targetSchema" column="target_schema" jdbcType="INTEGER" javaType="int"/>
|
|
<result property="appliedToSchema" column="applied_to_schema" jdbcType="INTEGER" javaType="int"/>
|
|
<result property="appliedOnDate" column="applied_on_date" jdbcType="TIMESTAMP" javaType="date" />
|
|
<result property="appliedToServer" column="applied_to_server" jdbcType="VARCHAR" javaType="string"/>
|
|
<result property="wasExecuted" column="was_executed" jdbcType="BOOLEAN" javaType="boolean"/>
|
|
<result property="succeeded" column="succeeded" jdbcType="BOOLEAN" javaType="boolean"/>
|
|
<result property="report" column="report" jdbcType="VARCHAR" javaType="string"/>
|
|
</resultMap>
|
|
|
|
<!-- -->
|
|
<!-- SQL Snippets / Inserts -->
|
|
<!-- -->
|
|
|
|
<!-- MyBatis #224 -->
|
|
<insert id="insert_AppliedPatch" parameterType="AppliedPatch">
|
|
insert into alf_applied_patch
|
|
(
|
|
id, description,
|
|
fixes_from_schema, fixes_to_schema, target_schema,
|
|
applied_to_schema, applied_on_date, applied_to_server,
|
|
was_executed, succeeded, report
|
|
)
|
|
values
|
|
(
|
|
#{id}, #{description,jdbcType=VARCHAR},
|
|
#{fixesFromSchema,jdbcType=INTEGER}, #{fixesToSchema,jdbcType=INTEGER}, #{targetSchema,jdbcType=INTEGER},
|
|
#{appliedToSchema,jdbcType=INTEGER}, #{appliedOnDate,jdbcType=TIMESTAMP}, #{appliedToServer,jdbcType=VARCHAR},
|
|
#{wasExecuted,jdbcType=BOOLEAN}, #{succeeded,jdbcType=BOOLEAN}, #{report,jdbcType=VARCHAR}
|
|
)
|
|
</insert>
|
|
|
|
<!-- -->
|
|
<!-- Updates -->
|
|
<!-- -->
|
|
|
|
<!-- MyBatis #224 -->
|
|
<insert id="update_AppliedPatch" parameterType="AppliedPatch">
|
|
update alf_applied_patch
|
|
set
|
|
description = #{description,jdbcType=VARCHAR},
|
|
fixes_from_schema = #{fixesFromSchema,jdbcType=INTEGER},
|
|
fixes_to_schema = #{fixesToSchema,jdbcType=INTEGER},
|
|
target_schema = #{targetSchema,jdbcType=INTEGER},
|
|
applied_to_schema = #{appliedToSchema,jdbcType=INTEGER},
|
|
applied_on_date = #{appliedOnDate,jdbcType=TIMESTAMP},
|
|
applied_to_server = #{appliedToServer,jdbcType=VARCHAR},
|
|
was_executed = #{wasExecuted,jdbcType=BOOLEAN},
|
|
succeeded = #{succeeded,jdbcType=BOOLEAN},
|
|
report = #{report,jdbcType=VARCHAR}
|
|
where
|
|
id = #{id}
|
|
</insert>
|
|
|
|
<!-- -->
|
|
<!-- Statements -->
|
|
<!-- -->
|
|
|
|
<select id="select_AppliedPatchById" parameterType="AppliedPatch" resultMap="result_AppliedPatch">
|
|
select
|
|
id, description,
|
|
fixes_from_schema, fixes_to_schema, target_schema,
|
|
applied_to_schema, applied_on_date, applied_to_server,
|
|
was_executed, succeeded, report
|
|
from
|
|
alf_applied_patch
|
|
where
|
|
id = #{id}
|
|
</select>
|
|
|
|
<select id="select_AllAppliedPatches" resultMap="result_AppliedPatch">
|
|
select
|
|
id, description,
|
|
fixes_from_schema, fixes_to_schema, target_schema,
|
|
applied_to_schema, applied_on_date, applied_to_server,
|
|
was_executed, succeeded, report
|
|
from
|
|
alf_applied_patch
|
|
order by
|
|
target_schema
|
|
</select>
|
|
|
|
</mapper> |