Skip to content

Thymeleaf scripting plugin for MyBatis

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
license.txt
Notifications You must be signed in to change notification settings

kazuki43zoo/thymeleaf-scripting

 
 

Repository files navigation

MyBatis Thymeleaf 3 Support

Build Status Coverage Status Maven central Sonatype Nexus (Snapshots) License

thymeleaf-scripting

MyBatis Thymeleaf 3 Scripting Support.

Introduction

The mybatis-thymeleaf is a plugin that helps applying a SQL using template provided by Thymeleaf 3. If you are not familiar with Thymeleaf 3 syntax, you can see the Thymeleaf documentations.

Simple bindable 2-way SQL

SELECT * FROM names
  WHERE id = /*[# mb:p="id"]*/ 1 /*[/]*/

Dynamic bindable 2-way SQL

SELECT * FROM names
  WHERE 1 = 1
  /*[# th:if="${not #lists.isEmpty(ids)}"]*/
    AND id IN (
      /*[# mb:p="ids"]*/ 1 /*[/]*/
    )
  /*[/]*/
  ORDER BY id

Dynamic bindable SQL(non 2-way)

SELECT * FROM names
  WHERE 1 = 1
  [# th:if="${not #lists.isEmpty(ids)}"]
    AND id IN (
      [# mb:p="ids" /]
    )
  [/]
  ORDER BY id

Requirements

  • Java 8, Java 11+
  • MyBatis 3.4.3+ (Recommend to use 3.5+ or 3.4.x latest version)
  • Thymeleaf 3.0+ (Recommend to use 3.0.x latest version)

Documentation

Related Resources

Contact us

Question

When there is a question, at first please confirm whether exists same question at following web sites.

If you cannot find a same question, please post new question to the mailing list or the Stack Overflow.

Report and Request

When you found a bug or want to submit a feature request(new feature or current feature improvement), at first please confirm whether exists same bug or request at following pages.

If you cannot find a same report or request, please post new issue to the issue tracker.

IMPORTANT:

When you found a security vulnerability, at first please report it to the mybatis organization members instead of issue tracker.

About

Thymeleaf scripting plugin for MyBatis

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
license.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 86.0%
  • TSQL 12.6%
  • Other 1.4%