Dynamic Order in JDBI SQL Object Queries

前端 未结 3 1915
渐次进展
渐次进展 2020-12-03 08:12

How do you do ordering with SQL Object Queries in JDBI?

I want to do something like:

@SqlQuery(
    \"SELECT         


        
3条回答
  •  我在风中等你
    2020-12-03 08:50

    I think its because the String Template library is assumed to be provided and that assumption fails at runtime. Adding following to the application POM should fix the issue:

    
      org.antlr
      stringtemplate
      3.2.1
    
    

    By looking at JDBI 2 pom, you can see following:

    
      org.antlr
      stringtemplate
      3.2.1
      true
    
    

    Meaning JDBI wont complain on absence of stringtemplate lib.

提交回复
热议问题