{"action":"created","issue":{"url":"https://api.github.com/repos/jdbi/jdbi/issues/911","repository_url":"https://api.github.com/repos/jdbi/jdbi","labels_url":"https://api.github.com/repos/jdbi/jdbi/issues/911/labels{/name}","comments_url":"https://api.github.com/repos/jdbi/jdbi/issues/911/comments","events_url":"https://api.github.com/repos/jdbi/jdbi/issues/911/events","html_url":"https://github.com/jdbi/jdbi/issues/911","id":264420412,"node_id":"MDU6SXNzdWUyNjQ0MjA0MTI=","number":911,"title":"Use of `UseStringTemplate3StatementLocator` no longer allows loading queries from a file","user":{"login":"ktalebian","id":2308915,"node_id":"MDQ6VXNlcjIzMDg5MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/2308915?v=4","gravatar_id":"","url":"https://api.github.com/users/ktalebian","html_url":"https://github.com/ktalebian","followers_url":"https://api.github.com/users/ktalebian/followers","following_url":"https://api.github.com/users/ktalebian/following{/other_user}","gists_url":"https://api.github.com/users/ktalebian/gists{/gist_id}","starred_url":"https://api.github.com/users/ktalebian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktalebian/subscriptions","organizations_url":"https://api.github.com/users/ktalebian/orgs","repos_url":"https://api.github.com/users/ktalebian/repos","events_url":"https://api.github.com/users/ktalebian/events{/privacy}","received_events_url":"https://api.github.com/users/ktalebian/received_events","type":"User","site_admin":false},"labels":[{"id":335744163,"node_id":"MDU6TGFiZWwzMzU3NDQxNjM=","url":"https://api.github.com/repos/jdbi/jdbi/labels/question","name":"question","color":"207de5","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jdbi/jdbi/milestones/5","html_url":"https://github.com/jdbi/jdbi/milestone/5","labels_url":"https://api.github.com/repos/jdbi/jdbi/milestones/5/labels","id":2162120,"node_id":"MDk6TWlsZXN0b25lMjE2MjEyMA==","number":5,"title":"JDBI 2.x maintenance","description":"","creator":{"login":"qualidafial","id":38629,"node_id":"MDQ6VXNlcjM4NjI5","avatar_url":"https://avatars2.githubusercontent.com/u/38629?v=4","gravatar_id":"","url":"https://api.github.com/users/qualidafial","html_url":"https://github.com/qualidafial","followers_url":"https://api.github.com/users/qualidafial/followers","following_url":"https://api.github.com/users/qualidafial/following{/other_user}","gists_url":"https://api.github.com/users/qualidafial/gists{/gist_id}","starred_url":"https://api.github.com/users/qualidafial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qualidafial/subscriptions","organizations_url":"https://api.github.com/users/qualidafial/orgs","repos_url":"https://api.github.com/users/qualidafial/repos","events_url":"https://api.github.com/users/qualidafial/events{/privacy}","received_events_url":"https://api.github.com/users/qualidafial/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":25,"state":"open","created_at":"2016-11-28T20:56:36Z","updated_at":"2018-06-05T18:51:47Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2017-10-11T00:28:03Z","updated_at":"2018-11-07T23:30:30Z","closed_at":"2017-10-11T05:28:53Z","author_association":"NONE","body":"I keep all my sqls in a separate .sql and use @SqlQuery(\"db/my-dao/fetch-my-dao.sql\").\r\n\r\nEverything works fine, but as soon as I add `@UseStringTemplate3StatementLocator` to the Dao interface, it can no longer find the file, and I just get a syntax error saying the string `db/my-dao/fetch-my-dao.sql` is not a valid query."},"comment":{"url":"https://api.github.com/repos/jdbi/jdbi/issues/comments/436816353","html_url":"https://github.com/jdbi/jdbi/issues/911#issuecomment-436816353","issue_url":"https://api.github.com/repos/jdbi/jdbi/issues/911","id":436816353,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjgxNjM1Mw==","user":{"login":"stevenschlansker","id":129097,"node_id":"MDQ6VXNlcjEyOTA5Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/129097?v=4","gravatar_id":"","url":"https://api.github.com/users/stevenschlansker","html_url":"https://github.com/stevenschlansker","followers_url":"https://api.github.com/users/stevenschlansker/followers","following_url":"https://api.github.com/users/stevenschlansker/following{/other_user}","gists_url":"https://api.github.com/users/stevenschlansker/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenschlansker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenschlansker/subscriptions","organizations_url":"https://api.github.com/users/stevenschlansker/orgs","repos_url":"https://api.github.com/users/stevenschlansker/repos","events_url":"https://api.github.com/users/stevenschlansker/events{/privacy}","received_events_url":"https://api.github.com/users/stevenschlansker/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T23:30:30Z","updated_at":"2018-11-07T23:30:30Z","author_association":"MEMBER","body":"As far as I know ST won't handle overloads like this, however you can always override the template name with the annotation value e.g.\r\n\r\n```java\r\n@SqlQuery\r\nList<User> getUsers();\r\n@SqlQuery(\"getUsersById\")\r\nList<User> getUsers(int id);\r\n```"}}
{"actor":{"display_login":"stevenschlansker"}}