apache / apache/incubator-seata

实体save成功后对应的自增id未空,去掉事务后是正常的!

Open
#2,889 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

springboot + mybatis-plus
实体id设置为自增,save后实体的id为空,去掉事务后正常!!!

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named. Start by reproducing the Spring Boot and MyBatis-Plus save operation with an auto-increment entity inside and outside a transaction, then compare how the generated ID is handled. Done means the entity receives its generated ID after save while the transaction is active.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, database, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.