MOB-448: Better patch for JDBC3 generated keys

- Fixes bug with different column types not matching generated key target type
 - Submitted to  https://issues.apache.org/jira/browse/IBATIS-142
 - MySQL and SQLServer use generated keys
 - Other tidy ups

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13732 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2009-03-24 06:21:00 +00:00
parent cc6116e682
commit 33902c69e2
11 changed files with 16 additions and 63 deletions

View File

@@ -12,7 +12,7 @@
values (#activityType#, #activitySummary#, #activitySummaryFormat#, #feedUserId#, #postUserId#, #postDate#, #postId#, #siteNetwork#, #appTool#, #feedDate#)
<selectKey resultClass="long" keyProperty="id" type="post">
KEY_COLUMN:id
KEY_COLUMN:GENERATED_KEY
</selectKey>
</insert>

View File

@@ -12,7 +12,7 @@
values (#feedUserId#, #siteNetwork#, #appTool#, #lastModified#)
<selectKey resultClass="long" keyProperty="id" type="post">
KEY_COLUMN:id
KEY_COLUMN:GENERATED_KEY
</selectKey>
</insert>

View File

@@ -12,7 +12,7 @@
values (#status#, #activityData#, #userId#, #postDate#, #activityType#, #siteNetwork#, #appTool#, #jobTaskNode#, #lastModified#)
<selectKey resultClass="long" keyProperty="id" type="post">
KEY_COLUMN:sequence_id
KEY_COLUMN:GENERATED_KEY
</selectKey>
</insert>