Skip to content

Instantly share code, notes, and snippets.

@drinkjava2
drinkjava2 / gist:c2d302c1f2c0f0f6147b81151ff3d838
Last active May 12, 2017 08:51
A demo shows how to let Java support multiple line Strings
Here is a method to let Java suppor multiple line Strings, and to make it run on product server, need copy source code to
class path and change ".java" to ".sql" suffix:
https://github.com/drinkjava2/jSqlBox/blob/master/jsqlbox/src/test/java/test/examples/multipleLineSQL/SqlTemplateDemo.java
This demo shows how to use Java file as the SQL template and inject sql parameters by use Threadlocal.
public class SqlTemplateDemo extends TestBase {
//@formatter:off
public static class InsertUser extends SqlTemplate {
public InsertUser(Object name, Object address, Object age){
@drinkjava2
drinkjava2 / license-badges.md
Created January 19, 2018 08:17 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
  • Github has a new autodetection of the LICENSE file, which shows up the license at the repo overview