Copilot commented on code in PR #7443:
URL: https://github.com/apache/incubator-seata/pull/7443#discussion_r2314967901


##########
tcc/src/main/java/org/apache/seata/rm/tcc/api/TwoPhaseBusinessAction.java:
##########
@@ -27,9 +27,14 @@
 /**
  * TCC annotation.
  * Define a TCC interface, which added on the try method.
- * Must be used with `@LocalTCC`.
+ * Must be used with `@LocalTCC` annotation on the interface or implementation 
class.
+ * This annotation is specifically designed for TCC (Try-Confirm-Cancel) 
transaction mode.
  *
- * @see org.apache.seata.rm.tcc.api.LocalTCC // TCC annotation, which added on 
the TCC interface. It can't be left out.
+ * For Saga scenarios with compensation patterns, use 
`@CompensationBusinessAction` with `@SagaTransactional` instead.

Review Comment:
   The documentation mentions using `@CompensationBusinessAction` with 
`@SagaTransactional` but `@CompensationBusinessAction` is for defining methods, 
while `@SagaTransactional` is for marking classes/interfaces. Consider 
clarifying that `@CompensationBusinessAction` is used on methods within 
classes/interfaces marked with `@SagaTransactional`.
   ```suggestion
    * For Saga scenarios with compensation patterns, use 
`@CompensationBusinessAction` on methods within classes or interfaces marked 
with `@SagaTransactional`.
   ```



##########
saga/seata-saga-annotation/src/main/resources/META-INF/services/org.apache.seata.integration.tx.api.remoting.RemotingParser:
##########
@@ -0,0 +1,17 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+org.apache.seata.saga.rm.remoting.parser.SagaTransactionalRemotingParser 

Review Comment:
   Remove trailing whitespace at the end of line 17.
   ```suggestion
   org.apache.seata.saga.rm.remoting.parser.SagaTransactionalRemotingParser
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to