mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
More MOB-452: Full IBATIS Integration: Refactor Existing iBatis Usage and Test
- Integrated patch for iBatis to enable JDBC3 getGeneratedKeys - Enabled ID generation detection for MySQL git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13723 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -8,13 +8,13 @@
|
||||
|
||||
<insert id="insert.activity.feed" parameterClass="ActivityFeed">
|
||||
|
||||
<selectKey resultClass="long" keyProperty="id" type="pre">
|
||||
select alf_activity_feed_seq.nextval as value from dual
|
||||
insert into alf_activity_feed (activity_type, activity_summary, activity_format, feed_user_id, post_user_id, post_date, post_id, site_network, app_tool, feed_date)
|
||||
values (#activityType#, #activitySummary#, #activitySummaryFormat#, #feedUserId#, #postUserId#, #postDate#, #postId#, #siteNetwork#, #appTool#, #feedDate#)
|
||||
|
||||
<selectKey resultClass="long" keyProperty="id" type="post">
|
||||
KEY_COLUMN:id
|
||||
</selectKey>
|
||||
|
||||
insert into alf_activity_feed (id, activity_type, activity_summary, activity_format, feed_user_id, post_user_id, post_date, post_id, site_network, app_tool, feed_date)
|
||||
values (#id#, #activityType#, #activitySummary#, #activitySummaryFormat#, #feedUserId#, #postUserId#, #postDate#, #postId#, #siteNetwork#, #appTool#, #feedDate#)
|
||||
|
||||
</insert>
|
||||
|
||||
</sqlMap>
|
@@ -8,12 +8,12 @@
|
||||
|
||||
<insert id="insert.activity.feedcontrol" parameterClass="FeedControl">
|
||||
|
||||
<selectKey resultClass="long" keyProperty="id" type="pre">
|
||||
select alf_activity_feed_control_seq.nextval as value from dual
|
||||
</selectKey>
|
||||
insert into alf_activity_feed_control (feed_user_id, site_network, app_tool, last_modified)
|
||||
values (#feedUserId#, #siteNetwork#, #appTool#, #lastModified#)
|
||||
|
||||
insert into alf_activity_feed_control (id, feed_user_id, site_network, app_tool, last_modified)
|
||||
values (#id#, #feedUserId#, #siteNetwork#, #appTool#, #lastModified#)
|
||||
<selectKey resultClass="long" keyProperty="id" type="post">
|
||||
KEY_COLUMN:id
|
||||
</selectKey>
|
||||
|
||||
</insert>
|
||||
|
||||
|
@@ -8,12 +8,12 @@
|
||||
|
||||
<insert id="insert.activity.post" parameterClass="ActivityPost">
|
||||
|
||||
<selectKey resultClass="long" keyProperty="id" type="pre">
|
||||
select alf_activity_post_seq.nextval as value from dual
|
||||
insert into alf_activity_post (status, activity_data, post_user_id, post_date, activity_type, site_network, app_tool, job_task_node, last_modified)
|
||||
values (#status#, #activityData#, #userId#, #postDate#, #activityType#, #siteNetwork#, #appTool#, #jobTaskNode#, #lastModified#)
|
||||
|
||||
<selectKey resultClass="long" keyProperty="id" type="post">
|
||||
KEY_COLUMN:sequence_id
|
||||
</selectKey>
|
||||
|
||||
insert into alf_activity_post (sequence_id, status, activity_data, post_user_id, post_date, activity_type, site_network, app_tool, job_task_node, last_modified)
|
||||
values (#id#, #status#, #activityData#, #userId#, #postDate#, #activityType#, #siteNetwork#, #appTool#, #jobTaskNode#, #lastModified#)
|
||||
|
||||
</insert>
|
||||
|
||||
|
Reference in New Issue
Block a user