Thanks Artem! I can use UseClasspathSqlLocator, that's exactly what I was looking for! I wasn't sure if Dropwizard JDBI was using some custom in its implementation.
On Tuesday, February 20, 2018 at 6:05:33 PM UTC-5, [email protected] wrote: > > Hi Dropwizard User Group, > > I had a question regarding the dropwizard-jbi implementation. > I have read the dependency enables a developer to write a DAO query method > and attach the underlying sql to a separate .sql resource file (as opposed > to using the @Query annotation and writing SQL query inline in the same > java file) > For example, my UserDao class file would have a findByName method. There > will be a corresponding findByName.sql file that would hold the actual > underlying sql query. > > Could someone point to the exact location where this occurs? I am assuming > its using reflection under the hood as a utility. I am trying to write a > POC with spring boot and JDBI and would love to incorporate something > similar to enable writing queries in resource files versus inline in the > source code. > > Thanks > Sonya > -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
