Tuesday, April 30, 2013

MyBatis Velocity Scripting 1.0 Released

Dear Community,

We would like to announce the release of MyBatis Velocity Scripting 1.0

It is an extension that allows you to use the Apache Velocity scripting language to generate your dynamic SQL queries on the fly.

Treat your SQL scripts as templates, mybatis will apply your parameters, generates the actual sql, bind the jdbc parameters and execute all for you. All templates are precompiled at load time, so they are very fast to execute.

It is very easy, look at the docs:


It is available as usual in maven central repository as a jar or a bundle.

Special thanks to Zaher Hammoud for its contributions.

Github: https://github.com/mybatis/velocity-scripting

The MyBatis Team.

1 comment:

  1. Thanks so much to bring this great solution to community. One of my projects use MyBatis extensively and we need to build a very flexible sql builder which we can not do with mybatis xml lang driver. We found this project, trial and we were happy because all of our requirements are met. I blog how we do use your solution in this blog post http://esofthead.com/dynamic-sql-mybatis-using-velocity/

    Hai Nguyen