Bulk Insert with Spring-boot and my mybatis

23 views Asked by At

I am writing spring-boot application with my-batis. I am using annotation to handle insert, select or update operation. I was wondering if it is possible to do bulk insert.

I tried an obvious fail

@Insert(A_SIMPLE_INSERT_QUERY)
Integer bulkInsert(List<Simple> inp);

Any help is appreciated.

--edit-- I have implemented bulk insert using JdbcTemplate wondering if simpler ways exists or not.

0

There are 0 answers