{"action":"created","comment":{"url":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/comments/28506457","id":28506457,"diff_hunk":"@@ -0,0 +1,42 @@\n+<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n+<project xmlns=\"http://maven.apache.org/POM/4.0.0\"\n+         xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n+         xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\n+    <parent>\n+        <artifactId>izettle-toolbox</artifactId>\n+        <groupId>com.izettle.toolbox</groupId>\n+        <version>1.0.41-SNAPSHOT</version>\n+    </parent>\n+    <modelVersion>4.0.0</modelVersion>\n+\n+    <artifactId>izettle-jdbi</artifactId>\n+    <version>1.0.0-SNAPSHOT</version>","path":"izettle-jdbi/pom.xml","position":13,"original_position":13,"commit_id":"d9a204089cea487977c206462a613b6fe96232a9","original_commit_id":"d9a204089cea487977c206462a613b6fe96232a9","user":{"login":"nzroller","id":42975,"avatar_url":"https://avatars.githubusercontent.com/u/42975?v=3","gravatar_id":"","url":"https://api.github.com/users/nzroller","html_url":"https://github.com/nzroller","followers_url":"https://api.github.com/users/nzroller/followers","following_url":"https://api.github.com/users/nzroller/following{/other_user}","gists_url":"https://api.github.com/users/nzroller/gists{/gist_id}","starred_url":"https://api.github.com/users/nzroller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzroller/subscriptions","organizations_url":"https://api.github.com/users/nzroller/orgs","repos_url":"https://api.github.com/users/nzroller/repos","events_url":"https://api.github.com/users/nzroller/events{/privacy}","received_events_url":"https://api.github.com/users/nzroller/received_events","type":"User","site_admin":false},"body":"Version should stay the same as the toolbox proper I think (i.e. remove this line). For now it makes releases a tad easier.","created_at":"2015-04-16T12:56:32Z","updated_at":"2015-04-16T12:56:32Z","html_url":"https://github.com/iZettle/izettle-toolbox/pull/110#discussion_r28506457","pull_request_url":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/comments/28506457"},"html":{"href":"https://github.com/iZettle/izettle-toolbox/pull/110#discussion_r28506457"},"pull_request":{"href":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/110","id":32693964,"html_url":"https://github.com/iZettle/izettle-toolbox/pull/110","diff_url":"https://github.com/iZettle/izettle-toolbox/pull/110.diff","patch_url":"https://github.com/iZettle/izettle-toolbox/pull/110.patch","issue_url":"https://api.github.com/repos/iZettle/izettle-toolbox/issues/110","number":110,"state":"open","locked":false,"title":"JDBI Module, Binders currently duplicated in our services","user":{"login":"freddd","id":1108176,"avatar_url":"https://avatars.githubusercontent.com/u/1108176?v=3","gravatar_id":"","url":"https://api.github.com/users/freddd","html_url":"https://github.com/freddd","followers_url":"https://api.github.com/users/freddd/followers","following_url":"https://api.github.com/users/freddd/following{/other_user}","gists_url":"https://api.github.com/users/freddd/gists{/gist_id}","starred_url":"https://api.github.com/users/freddd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freddd/subscriptions","organizations_url":"https://api.github.com/users/freddd/orgs","repos_url":"https://api.github.com/users/freddd/repos","events_url":"https://api.github.com/users/freddd/events{/privacy}","received_events_url":"https://api.github.com/users/freddd/received_events","type":"User","site_admin":false},"body":"As we discussed before we should have a JDBI lib as these classes are generic and can be used by whoever, wherever (JDBI is used of course). These are basically copies of what's currently in accounting-service & translation-service. I had to make one small changes because I did not want to add guava as a dependency just to use Lists & Iterables. Also worth mentioning is that this module is overriding the default source & target, Java 7 and is instead using Java 8. It's a quick change if we would want this to be compiled using 7 instead.\r\n\r\nThe binders are used to automagic IN-clauses (*ArrayBinder) or change value to bind on (enums is a good example where the default is name() but sometimes we want ordinal()):\r\n* ```EnumOrdinalBinder```\r\n* ```EnumNameArrayBinder```\r\n* ```IntegerArrayBinder```\r\n* ```StringArrayBinder```\r\n\r\nThe ```PostgresArrayArgumentFactory``` is the ArgumentFactory that will intercept and do the actual binding.\r\nThe ```SqlArray``` captures the information to be bound.\r\n\r\nAnyway, let me know what you think.\r\n\r\nping @aaanders @goncalosmo, @fredrikbackstrom, this might also be of interest for @adamvoncorswant as it goes into the toolbox which is OS.","created_at":"2015-04-06T17:30:05Z","updated_at":"2015-04-16T12:56:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83bb7fc98dbe5bc2d75a34cee932b0e8888ad7b6","assignee":{"login":"aaanders","id":1295656,"avatar_url":"https://avatars.githubusercontent.com/u/1295656?v=3","gravatar_id":"","url":"https://api.github.com/users/aaanders","html_url":"https://github.com/aaanders","followers_url":"https://api.github.com/users/aaanders/followers","following_url":"https://api.github.com/users/aaanders/following{/other_user}","gists_url":"https://api.github.com/users/aaanders/gists{/gist_id}","starred_url":"https://api.github.com/users/aaanders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaanders/subscriptions","organizations_url":"https://api.github.com/users/aaanders/orgs","repos_url":"https://api.github.com/users/aaanders/repos","events_url":"https://api.github.com/users/aaanders/events{/privacy}","received_events_url":"https://api.github.com/users/aaanders/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/110/commits","review_comments_url":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/110/comments","review_comment_url":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iZettle/izettle-toolbox/issues/110/comments","statuses_url":"https://api.github.com/repos/iZettle/izettle-toolbox/statuses/d9a204089cea487977c206462a613b6fe96232a9","head":{"label":"iZettle:jdbi-utils","ref":"jdbi-utils","sha":"d9a204089cea487977c206462a613b6fe96232a9","user":{"login":"iZettle","id":1272526,"avatar_url":"https://avatars.githubusercontent.com/u/1272526?v=3","gravatar_id":"","url":"https://api.github.com/users/iZettle","html_url":"https://github.com/iZettle","followers_url":"https://api.github.com/users/iZettle/followers","following_url":"https://api.github.com/users/iZettle/following{/other_user}","gists_url":"https://api.github.com/users/iZettle/gists{/gist_id}","starred_url":"https://api.github.com/users/iZettle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iZettle/subscriptions","organizations_url":"https://api.github.com/users/iZettle/orgs","repos_url":"https://api.github.com/users/iZettle/repos","events_url":"https://api.github.com/users/iZettle/events{/privacy}","received_events_url":"https://api.github.com/users/iZettle/received_events","type":"Organization","site_admin":false},"repo":{"id":13087671,"name":"izettle-toolbox","full_name":"iZettle/izettle-toolbox","owner":{"login":"iZettle","id":1272526,"avatar_url":"https://avatars.githubusercontent.com/u/1272526?v=3","gravatar_id":"","url":"https://api.github.com/users/iZettle","html_url":"https://github.com/iZettle","followers_url":"https://api.github.com/users/iZettle/followers","following_url":"https://api.github.com/users/iZettle/following{/other_user}","gists_url":"https://api.github.com/users/iZettle/gists{/gist_id}","starred_url":"https://api.github.com/users/iZettle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iZettle/subscriptions","organizations_url":"https://api.github.com/users/iZettle/orgs","repos_url":"https://api.github.com/users/iZettle/repos","events_url":"https://api.github.com/users/iZettle/events{/privacy}","received_events_url":"https://api.github.com/users/iZettle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iZettle/izettle-toolbox","description":"","fork":false,"url":"https://api.github.com/repos/iZettle/izettle-toolbox","forks_url":"https://api.github.com/repos/iZettle/izettle-toolbox/forks","keys_url":"https://api.github.com/repos/iZettle/izettle-toolbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iZettle/izettle-toolbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iZettle/izettle-toolbox/teams","hooks_url":"https://api.github.com/repos/iZettle/izettle-toolbox/hooks","issue_events_url":"https://api.github.com/repos/iZettle/izettle-toolbox/issues/events{/number}","events_url":"https://api.github.com/repos/iZettle/izettle-toolbox/events","assignees_url":"https://api.github.com/repos/iZettle/izettle-toolbox/assignees{/user}","branches_url":"https://api.github.com/repos/iZettle/izettle-toolbox/branches{/branch}","tags_url":"https://api.github.com/repos/iZettle/izettle-toolbox/tags","blobs_url":"https://api.github.com/repos/iZettle/izettle-toolbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iZettle/izettle-toolbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iZettle/izettle-toolbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/iZettle/izettle-toolbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iZettle/izettle-toolbox/statuses/{sha}","languages_url":"https://api.github.com/repos/iZettle/izettle-toolbox/languages","stargazers_url":"https://api.github.com/repos/iZettle/izettle-toolbox/stargazers","contributors_url":"https://api.github.com/repos/iZettle/izettle-toolbox/contributors","subscribers_url":"https://api.github.com/repos/iZettle/izettle-toolbox/subscribers","subscription_url":"https://api.github.com/repos/iZettle/izettle-toolbox/subscription","commits_url":"https://api.github.com/repos/iZettle/izettle-toolbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/iZettle/izettle-toolbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/iZettle/izettle-toolbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/iZettle/izettle-toolbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/iZettle/izettle-toolbox/contents/{+path}","compare_url":"https://api.github.com/repos/iZettle/izettle-toolbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iZettle/izettle-toolbox/merges","archive_url":"https://api.github.com/repos/iZettle/izettle-toolbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iZettle/izettle-toolbox/downloads","issues_url":"https://api.github.com/repos/iZettle/izettle-toolbox/issues{/number}","pulls_url":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls{/number}","milestones_url":"https://api.github.com/repos/iZettle/izettle-toolbox/milestones{/number}","notifications_url":"https://api.github.com/repos/iZettle/izettle-toolbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iZettle/izettle-toolbox/labels{/name}","releases_url":"https://api.github.com/repos/iZettle/izettle-toolbox/releases{/id}","created_at":"2013-09-25T08:01:29Z","updated_at":"2015-04-16T12:23:09Z","pushed_at":"2015-04-16T12:23:09Z","git_url":"git://github.com/iZettle/izettle-toolbox.git","ssh_url":"git@github.com:iZettle/izettle-toolbox.git","clone_url":"https://github.com/iZettle/izettle-toolbox.git","svn_url":"https://github.com/iZettle/izettle-toolbox","homepage":null,"size":2724,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"iZettle:master","ref":"master","sha":"73c9f72913d577f33a75229e0927a6d4e0396deb","user":{"login":"iZettle","id":1272526,"avatar_url":"https://avatars.githubusercontent.com/u/1272526?v=3","gravatar_id":"","url":"https://api.github.com/users/iZettle","html_url":"https://github.com/iZettle","followers_url":"https://api.github.com/users/iZettle/followers","following_url":"https://api.github.com/users/iZettle/following{/other_user}","gists_url":"https://api.github.com/users/iZettle/gists{/gist_id}","starred_url":"https://api.github.com/users/iZettle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iZettle/subscriptions","organizations_url":"https://api.github.com/users/iZettle/orgs","repos_url":"https://api.github.com/users/iZettle/repos","events_url":"https://api.github.com/users/iZettle/events{/privacy}","received_events_url":"https://api.github.com/users/iZettle/received_events","type":"Organization","site_admin":false},"repo":{"id":13087671,"name":"izettle-toolbox","full_name":"iZettle/izettle-toolbox","owner":{"login":"iZettle","id":1272526,"avatar_url":"https://avatars.githubusercontent.com/u/1272526?v=3","gravatar_id":"","url":"https://api.github.com/users/iZettle","html_url":"https://github.com/iZettle","followers_url":"https://api.github.com/users/iZettle/followers","following_url":"https://api.github.com/users/iZettle/following{/other_user}","gists_url":"https://api.github.com/users/iZettle/gists{/gist_id}","starred_url":"https://api.github.com/users/iZettle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iZettle/subscriptions","organizations_url":"https://api.github.com/users/iZettle/orgs","repos_url":"https://api.github.com/users/iZettle/repos","events_url":"https://api.github.com/users/iZettle/events{/privacy}","received_events_url":"https://api.github.com/users/iZettle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iZettle/izettle-toolbox","description":"","fork":false,"url":"https://api.github.com/repos/iZettle/izettle-toolbox","forks_url":"https://api.github.com/repos/iZettle/izettle-toolbox/forks","keys_url":"https://api.github.com/repos/iZettle/izettle-toolbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iZettle/izettle-toolbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iZettle/izettle-toolbox/teams","hooks_url":"https://api.github.com/repos/iZettle/izettle-toolbox/hooks","issue_events_url":"https://api.github.com/repos/iZettle/izettle-toolbox/issues/events{/number}","events_url":"https://api.github.com/repos/iZettle/izettle-toolbox/events","assignees_url":"https://api.github.com/repos/iZettle/izettle-toolbox/assignees{/user}","branches_url":"https://api.github.com/repos/iZettle/izettle-toolbox/branches{/branch}","tags_url":"https://api.github.com/repos/iZettle/izettle-toolbox/tags","blobs_url":"https://api.github.com/repos/iZettle/izettle-toolbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iZettle/izettle-toolbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iZettle/izettle-toolbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/iZettle/izettle-toolbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iZettle/izettle-toolbox/statuses/{sha}","languages_url":"https://api.github.com/repos/iZettle/izettle-toolbox/languages","stargazers_url":"https://api.github.com/repos/iZettle/izettle-toolbox/stargazers","contributors_url":"https://api.github.com/repos/iZettle/izettle-toolbox/contributors","subscribers_url":"https://api.github.com/repos/iZettle/izettle-toolbox/subscribers","subscription_url":"https://api.github.com/repos/iZettle/izettle-toolbox/subscription","commits_url":"https://api.github.com/repos/iZettle/izettle-toolbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/iZettle/izettle-toolbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/iZettle/izettle-toolbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/iZettle/izettle-toolbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/iZettle/izettle-toolbox/contents/{+path}","compare_url":"https://api.github.com/repos/iZettle/izettle-toolbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iZettle/izettle-toolbox/merges","archive_url":"https://api.github.com/repos/iZettle/izettle-toolbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iZettle/izettle-toolbox/downloads","issues_url":"https://api.github.com/repos/iZettle/izettle-toolbox/issues{/number}","pulls_url":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls{/number}","milestones_url":"https://api.github.com/repos/iZettle/izettle-toolbox/milestones{/number}","notifications_url":"https://api.github.com/repos/iZettle/izettle-toolbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iZettle/izettle-toolbox/labels{/name}","releases_url":"https://api.github.com/repos/iZettle/izettle-toolbox/releases{/id}","created_at":"2013-09-25T08:01:29Z","updated_at":"2015-04-16T12:23:09Z","pushed_at":"2015-04-16T12:23:09Z","git_url":"git://github.com/iZettle/izettle-toolbox.git","ssh_url":"git@github.com:iZettle/izettle-toolbox.git","clone_url":"https://github.com/iZettle/izettle-toolbox.git","svn_url":"https://github.com/iZettle/izettle-toolbox","homepage":null,"size":2724,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/110"},"html":{"href":"https://github.com/iZettle/izettle-toolbox/pull/110"},"issue":{"href":"https://api.github.com/repos/iZettle/izettle-toolbox/issues/110"},"comments":{"href":"https://api.github.com/repos/iZettle/izettle-toolbox/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iZettle/izettle-toolbox/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/iZettle/izettle-toolbox/statuses/d9a204089cea487977c206462a613b6fe96232a9"}}}}