You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/10/10 06:37:35 UTC

[GitHub] [shardingsphere] liushangqing9803 opened a new issue, #19319: java not used @transactional annotation ,data cannot be updated

liushangqing9803 opened a new issue, #19319:
URL: https://github.com/apache/shardingsphere/issues/19319

   Configured a local transaction, found that only @transactional can be added to the method to take effect, resulting in some single update operation in the project plus @transactional annotation, it feels very troublesome. I don't know if I haven't configured it myself, or does the local transaction of shardingsphere have to add @transactional annotation to the method to take effect?
   
   version: ShardingSphere-Proxy 5.1.1


-- 
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-unsubscribe@shardingsphere.apache.org.apache.org

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


[GitHub] [shardingsphere] github-actions[bot] commented on issue #19319: java not used @transactional annotation ,data cannot be updated

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #19319:
URL: https://github.com/apache/shardingsphere/issues/19319#issuecomment-1272349334

   Hello , this issue has not received a reply for several days.
   This issue is supposed to be closed.


-- 
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-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] liushangqing9803 commented on issue #19319: java not used @transactional annotation ,data cannot be updated

Posted by GitBox <gi...@apache.org>.
liushangqing9803 commented on issue #19319:
URL: https://github.com/apache/shardingsphere/issues/19319#issuecomment-1188811927

   ```
   @Service
   public class StatusServiceImpl implements StatusService {
      //not used @Transactional , When this method is executed, the updated stusdent data cannot be seen
       @Override
       public Long update(Status status) {
           return studentsMapper.update(status);
       }
   
     //used @Transactional , normal execution
      @Override
       @Transactional
       public Long updateT(Status status) {
           return studentsMapper.update(status);
       }
   }
   ```


-- 
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-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] TeslaCN closed issue #19319: java not used @transactional annotation ,data cannot be updated

Posted by GitBox <gi...@apache.org>.
TeslaCN closed issue #19319: java not used @transactional annotation ,data cannot be updated
URL: https://github.com/apache/shardingsphere/issues/19319


-- 
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-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] github-actions[bot] closed issue #19319: java not used @transactional annotation ,data cannot be updated

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #19319: java not used @transactional annotation ,data cannot be updated
URL: https://github.com/apache/shardingsphere/issues/19319


-- 
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-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] FlyingZC commented on issue #19319: java not used @transactional annotation ,data cannot be updated

Posted by GitBox <gi...@apache.org>.
FlyingZC commented on issue #19319:
URL: https://github.com/apache/shardingsphere/issues/19319#issuecomment-1206221584

   Can you give me a simple runnable demo to investigate this issue,thank you. @liushangqing9803 


-- 
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-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] TeslaCN commented on issue #19319: java not used @transactional annotation ,data cannot be updated

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #19319:
URL: https://github.com/apache/shardingsphere/issues/19319#issuecomment-1365644812

   Close due to no response.


-- 
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-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] terrymanu commented on issue #19319: java not used @transactional annotation ,data cannot be updated

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #19319:
URL: https://github.com/apache/shardingsphere/issues/19319#issuecomment-1188774909

   Can you provide the demo to reproduce the problem?


-- 
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-unsubscribe@shardingsphere.apache.org

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


[GitHub] [shardingsphere] liushangqing9803 commented on issue #19319: java not used @transactional annotation ,data cannot be updated

Posted by GitBox <gi...@apache.org>.
liushangqing9803 commented on issue #19319:
URL: https://github.com/apache/shardingsphere/issues/19319#issuecomment-1188619075

   When the next transaction is executed, the update statement that does not open the transaction will commit the transaction together


-- 
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-unsubscribe@shardingsphere.apache.org

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