mybatis / velocity-scripting

Velocity scripting plugin for MyBatis

Home Page:http://mybatis.github.io/velocity-scripting

Repository from Github https://github.commybatis/velocity-scriptingRepository from Github https://github.commybatis/velocity-scripting

Support template file

kazuki43zoo opened this issue · comments

In current version, template file(vm file) does not support.

For example:

  • CityMapper-findByState.vm
select
  id, name, state, country
from
  city
where
  state = @{state}
  • Mapper
@Select("#parse('/mappers/CityMapper-findByState.vm')")
City findByState(@Param("state") String state);

In above case, @{state} cannot translate to JDBC bind variable (?).

We will consider to support a template file(.vm) like as mybatis-freemarker and mybatis-thymeleaf.