1 Star 0 Fork 0

HServer / hserver-plugs-beetlsql

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

HServer SQL插件

版本查询 https://repo1.maven.org/maven2/net/hserver/plugins/beetlsql/plugins.beetlsql/

当前 3.3

beetlsql 3.4.3-RELEASE
<dependency>
  <groupId>net.hserver.plugins.beetlsql</groupId>
  <artifactId>plugins.beetlsql</artifactId>
  <version>3.3</version>
</dependency>
    @BeetlSQL
    public interface UserDao2 extends BaseMapper<User> {
    
        @Update
        @Sql("update user set age = ? where id = ?")
        void update(Integer age,int id);
    
        List<User> select();
    }
@Bean
public class UserService {
    @Autowired
    private UserDao2 userDao2;
 
    @Tx(rollbackFor = ArithmeticException.class,timeoutMillisecond = 1000)
        public boolean update() {
            System.out.println("我的:"+Thread.currentThread().getName());
            userDao2.update(2222, 1);
    //        System.out.println(1 / 0);
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            return false;
        }
 }

Comments ( 0 )

Sign in for post a comment

About

Cancel

Releases (1)

All
3.3

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/HServer/hserver-plugs-beetlsql.git
git@gitee.com:HServer/hserver-plugs-beetlsql.git
HServer
hserver-plugs-beetlsql
hserver-plugs-beetlsql
master

Search

105716 1d94204e 1850385 105716 2d26be5c 1850385