Commit 249f58617b2256dbe932e8549054572e33f86188
1 parent
4a64b8e7
Exists in
master
and in
2 other branches
optimized add entity transaction
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
build.gradle
src/main/java/com/taover/repository/CustomJdbcTemplate.java
... | ... | @@ -403,7 +403,6 @@ public class CustomJdbcTemplate<T, ID extends Serializable> { |
403 | 403 | /** |
404 | 404 | * 添加 |
405 | 405 | */ |
406 | - @Transactional(rollbackFor = {Exception.class, Error.class}) | |
407 | 406 | public BigInteger addEntityForAutoincrementId(T entity) { |
408 | 407 | StringBuffer sqlForLog = new StringBuffer("INSERT INTO "+this.getTableSql()+"("); |
409 | 408 | StringBuffer sqlValueForLog = new StringBuffer(") VALUES ("); | ... | ... |