{"action":"created","comment":{"url":"https://api.github.com/repos/excilys/androidannotations/pulls/comments/29555422","id":29555422,"diff_hunk":"@@ -0,0 +1,46 @@\n+package com.example.androidannotations.ormliteexample.db;\n+\n+import android.content.Context;\n+\n+import com.example.androidannotations.ormliteexample.R;\n+\n+import org.androidannotations.annotations.EBean;\n+import org.androidannotations.annotations.EBean.Scope;\n+import org.androidannotations.annotations.RootContext;\n+\n+import java.io.File;\n+import java.io.FileOutputStream;\n+import java.io.InputStream;\n+\n+/**\n+ * Created by Administrator on 2015/5/1.\n+ */\n+@EBean(scope = Scope.Singleton)\n+public class DBUtil {\n+    @RootContext\n+    Context context;\n+\n+    public void initDatabase() {\n+        try {\n+            InputStream is = context.getResources().openRawResource(R.raw.test);","path":"examples/OrmliteExample/app/src/main/java/com/example/androidannotations/ormliteexample/db/DBUtil.java","position":25,"original_position":25,"commit_id":"928c0b9744bf7e520f8afaf97333524d822e6060","original_commit_id":"928c0b9744bf7e520f8afaf97333524d822e6060","user":{"login":"WonderCsabo","id":480485,"avatar_url":"https://avatars.githubusercontent.com/u/480485?v=3","gravatar_id":"","url":"https://api.github.com/users/WonderCsabo","html_url":"https://github.com/WonderCsabo","followers_url":"https://api.github.com/users/WonderCsabo/followers","following_url":"https://api.github.com/users/WonderCsabo/following{/other_user}","gists_url":"https://api.github.com/users/WonderCsabo/gists{/gist_id}","starred_url":"https://api.github.com/users/WonderCsabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WonderCsabo/subscriptions","organizations_url":"https://api.github.com/users/WonderCsabo/orgs","repos_url":"https://api.github.com/users/WonderCsabo/repos","events_url":"https://api.github.com/users/WonderCsabo/events{/privacy}","received_events_url":"https://api.github.com/users/WonderCsabo/received_events","type":"User","site_admin":false},"body":"I think it is nicer to just create and persist some example data then to create this class.","created_at":"2015-05-03T12:01:27Z","updated_at":"2015-05-03T12:01:27Z","html_url":"https://github.com/excilys/androidannotations/pull/1388#discussion_r29555422","pull_request_url":"https://api.github.com/repos/excilys/androidannotations/pulls/1388","_links":{"self":{"href":"https://api.github.com/repos/excilys/androidannotations/pulls/comments/29555422"},"html":{"href":"https://github.com/excilys/androidannotations/pull/1388#discussion_r29555422"},"pull_request":{"href":"https://api.github.com/repos/excilys/androidannotations/pulls/1388"}}},"pull_request":{"url":"https://api.github.com/repos/excilys/androidannotations/pulls/1388","id":34597806,"html_url":"https://github.com/excilys/androidannotations/pull/1388","diff_url":"https://github.com/excilys/androidannotations/pull/1388.diff","patch_url":"https://github.com/excilys/androidannotations/pull/1388.patch","issue_url":"https://api.github.com/repos/excilys/androidannotations/issues/1388","number":1388,"state":"open","locked":false,"title":"Ormlite Example","user":{"login":"C3H6O3","id":9758660,"avatar_url":"https://avatars.githubusercontent.com/u/9758660?v=3","gravatar_id":"","url":"https://api.github.com/users/C3H6O3","html_url":"https://github.com/C3H6O3","followers_url":"https://api.github.com/users/C3H6O3/followers","following_url":"https://api.github.com/users/C3H6O3/following{/other_user}","gists_url":"https://api.github.com/users/C3H6O3/gists{/gist_id}","starred_url":"https://api.github.com/users/C3H6O3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C3H6O3/subscriptions","organizations_url":"https://api.github.com/users/C3H6O3/orgs","repos_url":"https://api.github.com/users/C3H6O3/repos","events_url":"https://api.github.com/users/C3H6O3/events{/privacy}","received_events_url":"https://api.github.com/users/C3H6O3/received_events","type":"User","site_admin":false},"body":"An example of @OrmLiteDao","created_at":"2015-05-03T07:52:54Z","updated_at":"2015-05-03T12:01:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d3be365248b139baf0f47dabbf46239aa000581","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/excilys/androidannotations/pulls/1388/commits","review_comments_url":"https://api.github.com/repos/excilys/androidannotations/pulls/1388/comments","review_comment_url":"https://api.github.com/repos/excilys/androidannotations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/excilys/androidannotations/issues/1388/comments","statuses_url":"https://api.github.com/repos/excilys/androidannotations/statuses/928c0b9744bf7e520f8afaf97333524d822e6060","head":{"label":"C3H6O3:develop","ref":"develop","sha":"928c0b9744bf7e520f8afaf97333524d822e6060","user":{"login":"C3H6O3","id":9758660,"avatar_url":"https://avatars.githubusercontent.com/u/9758660?v=3","gravatar_id":"","url":"https://api.github.com/users/C3H6O3","html_url":"https://github.com/C3H6O3","followers_url":"https://api.github.com/users/C3H6O3/followers","following_url":"https://api.github.com/users/C3H6O3/following{/other_user}","gists_url":"https://api.github.com/users/C3H6O3/gists{/gist_id}","starred_url":"https://api.github.com/users/C3H6O3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C3H6O3/subscriptions","organizations_url":"https://api.github.com/users/C3H6O3/orgs","repos_url":"https://api.github.com/users/C3H6O3/repos","events_url":"https://api.github.com/users/C3H6O3/events{/privacy}","received_events_url":"https://api.github.com/users/C3H6O3/received_events","type":"User","site_admin":false},"repo":{"id":34977171,"name":"androidannotations","full_name":"C3H6O3/androidannotations","owner":{"login":"C3H6O3","id":9758660,"avatar_url":"https://avatars.githubusercontent.com/u/9758660?v=3","gravatar_id":"","url":"https://api.github.com/users/C3H6O3","html_url":"https://github.com/C3H6O3","followers_url":"https://api.github.com/users/C3H6O3/followers","following_url":"https://api.github.com/users/C3H6O3/following{/other_user}","gists_url":"https://api.github.com/users/C3H6O3/gists{/gist_id}","starred_url":"https://api.github.com/users/C3H6O3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C3H6O3/subscriptions","organizations_url":"https://api.github.com/users/C3H6O3/orgs","repos_url":"https://api.github.com/users/C3H6O3/repos","events_url":"https://api.github.com/users/C3H6O3/events{/privacy}","received_events_url":"https://api.github.com/users/C3H6O3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/C3H6O3/androidannotations","description":"Fast Android Development. Easy maintainance.","fork":true,"url":"https://api.github.com/repos/C3H6O3/androidannotations","forks_url":"https://api.github.com/repos/C3H6O3/androidannotations/forks","keys_url":"https://api.github.com/repos/C3H6O3/androidannotations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/C3H6O3/androidannotations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/C3H6O3/androidannotations/teams","hooks_url":"https://api.github.com/repos/C3H6O3/androidannotations/hooks","issue_events_url":"https://api.github.com/repos/C3H6O3/androidannotations/issues/events{/number}","events_url":"https://api.github.com/repos/C3H6O3/androidannotations/events","assignees_url":"https://api.github.com/repos/C3H6O3/androidannotations/assignees{/user}","branches_url":"https://api.github.com/repos/C3H6O3/androidannotations/branches{/branch}","tags_url":"https://api.github.com/repos/C3H6O3/androidannotations/tags","blobs_url":"https://api.github.com/repos/C3H6O3/androidannotations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/C3H6O3/androidannotations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/C3H6O3/androidannotations/git/refs{/sha}","trees_url":"https://api.github.com/repos/C3H6O3/androidannotations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/C3H6O3/androidannotations/statuses/{sha}","languages_url":"https://api.github.com/repos/C3H6O3/androidannotations/languages","stargazers_url":"https://api.github.com/repos/C3H6O3/androidannotations/stargazers","contributors_url":"https://api.github.com/repos/C3H6O3/androidannotations/contributors","subscribers_url":"https://api.github.com/repos/C3H6O3/androidannotations/subscribers","subscription_url":"https://api.github.com/repos/C3H6O3/androidannotations/subscription","commits_url":"https://api.github.com/repos/C3H6O3/androidannotations/commits{/sha}","git_commits_url":"https://api.github.com/repos/C3H6O3/androidannotations/git/commits{/sha}","comments_url":"https://api.github.com/repos/C3H6O3/androidannotations/comments{/number}","issue_comment_url":"https://api.github.com/repos/C3H6O3/androidannotations/issues/comments{/number}","contents_url":"https://api.github.com/repos/C3H6O3/androidannotations/contents/{+path}","compare_url":"https://api.github.com/repos/C3H6O3/androidannotations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/C3H6O3/androidannotations/merges","archive_url":"https://api.github.com/repos/C3H6O3/androidannotations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/C3H6O3/androidannotations/downloads","issues_url":"https://api.github.com/repos/C3H6O3/androidannotations/issues{/number}","pulls_url":"https://api.github.com/repos/C3H6O3/androidannotations/pulls{/number}","milestones_url":"https://api.github.com/repos/C3H6O3/androidannotations/milestones{/number}","notifications_url":"https://api.github.com/repos/C3H6O3/androidannotations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/C3H6O3/androidannotations/labels{/name}","releases_url":"https://api.github.com/repos/C3H6O3/androidannotations/releases{/id}","created_at":"2015-05-03T07:11:12Z","updated_at":"2015-05-03T07:41:38Z","pushed_at":"2015-05-03T07:41:36Z","git_url":"git://github.com/C3H6O3/androidannotations.git","ssh_url":"git@github.com:C3H6O3/androidannotations.git","clone_url":"https://github.com/C3H6O3/androidannotations.git","svn_url":"https://github.com/C3H6O3/androidannotations","homepage":"http://androidannotations.org","size":14077,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"excilys:develop","ref":"develop","sha":"b4ae83a1c07994b1513cb2da654f0d4b793eecac","user":{"login":"excilys","id":668697,"avatar_url":"https://avatars.githubusercontent.com/u/668697?v=3","gravatar_id":"","url":"https://api.github.com/users/excilys","html_url":"https://github.com/excilys","followers_url":"https://api.github.com/users/excilys/followers","following_url":"https://api.github.com/users/excilys/following{/other_user}","gists_url":"https://api.github.com/users/excilys/gists{/gist_id}","starred_url":"https://api.github.com/users/excilys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excilys/subscriptions","organizations_url":"https://api.github.com/users/excilys/orgs","repos_url":"https://api.github.com/users/excilys/repos","events_url":"https://api.github.com/users/excilys/events{/privacy}","received_events_url":"https://api.github.com/users/excilys/received_events","type":"Organization","site_admin":false},"repo":{"id":3116751,"name":"androidannotations","full_name":"excilys/androidannotations","owner":{"login":"excilys","id":668697,"avatar_url":"https://avatars.githubusercontent.com/u/668697?v=3","gravatar_id":"","url":"https://api.github.com/users/excilys","html_url":"https://github.com/excilys","followers_url":"https://api.github.com/users/excilys/followers","following_url":"https://api.github.com/users/excilys/following{/other_user}","gists_url":"https://api.github.com/users/excilys/gists{/gist_id}","starred_url":"https://api.github.com/users/excilys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/excilys/subscriptions","organizations_url":"https://api.github.com/users/excilys/orgs","repos_url":"https://api.github.com/users/excilys/repos","events_url":"https://api.github.com/users/excilys/events{/privacy}","received_events_url":"https://api.github.com/users/excilys/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/excilys/androidannotations","description":"Fast Android Development. Easy maintainance.","fork":false,"url":"https://api.github.com/repos/excilys/androidannotations","forks_url":"https://api.github.com/repos/excilys/androidannotations/forks","keys_url":"https://api.github.com/repos/excilys/androidannotations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/excilys/androidannotations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/excilys/androidannotations/teams","hooks_url":"https://api.github.com/repos/excilys/androidannotations/hooks","issue_events_url":"https://api.github.com/repos/excilys/androidannotations/issues/events{/number}","events_url":"https://api.github.com/repos/excilys/androidannotations/events","assignees_url":"https://api.github.com/repos/excilys/androidannotations/assignees{/user}","branches_url":"https://api.github.com/repos/excilys/androidannotations/branches{/branch}","tags_url":"https://api.github.com/repos/excilys/androidannotations/tags","blobs_url":"https://api.github.com/repos/excilys/androidannotations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/excilys/androidannotations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/excilys/androidannotations/git/refs{/sha}","trees_url":"https://api.github.com/repos/excilys/androidannotations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/excilys/androidannotations/statuses/{sha}","languages_url":"https://api.github.com/repos/excilys/androidannotations/languages","stargazers_url":"https://api.github.com/repos/excilys/androidannotations/stargazers","contributors_url":"https://api.github.com/repos/excilys/androidannotations/contributors","subscribers_url":"https://api.github.com/repos/excilys/androidannotations/subscribers","subscription_url":"https://api.github.com/repos/excilys/androidannotations/subscription","commits_url":"https://api.github.com/repos/excilys/androidannotations/commits{/sha}","git_commits_url":"https://api.github.com/repos/excilys/androidannotations/git/commits{/sha}","comments_url":"https://api.github.com/repos/excilys/androidannotations/comments{/number}","issue_comment_url":"https://api.github.com/repos/excilys/androidannotations/issues/comments{/number}","contents_url":"https://api.github.com/repos/excilys/androidannotations/contents/{+path}","compare_url":"https://api.github.com/repos/excilys/androidannotations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/excilys/androidannotations/merges","archive_url":"https://api.github.com/repos/excilys/androidannotations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/excilys/androidannotations/downloads","issues_url":"https://api.github.com/repos/excilys/androidannotations/issues{/number}","pulls_url":"https://api.github.com/repos/excilys/androidannotations/pulls{/number}","milestones_url":"https://api.github.com/repos/excilys/androidannotations/milestones{/number}","notifications_url":"https://api.github.com/repos/excilys/androidannotations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/excilys/androidannotations/labels{/name}","releases_url":"https://api.github.com/repos/excilys/androidannotations/releases{/id}","created_at":"2012-01-06T08:48:03Z","updated_at":"2015-05-02T15:09:20Z","pushed_at":"2015-05-03T07:52:54Z","git_url":"git://github.com/excilys/androidannotations.git","ssh_url":"git@github.com:excilys/androidannotations.git","clone_url":"https://github.com/excilys/androidannotations.git","svn_url":"https://github.com/excilys/androidannotations","homepage":"http://androidannotations.org","size":41682,"stargazers_count":4993,"watchers_count":4993,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1399,"mirror_url":null,"open_issues_count":84,"forks":1399,"open_issues":84,"watchers":4993,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/excilys/androidannotations/pulls/1388"},"html":{"href":"https://github.com/excilys/androidannotations/pull/1388"},"issue":{"href":"https://api.github.com/repos/excilys/androidannotations/issues/1388"},"comments":{"href":"https://api.github.com/repos/excilys/androidannotations/issues/1388/comments"},"review_comments":{"href":"https://api.github.com/repos/excilys/androidannotations/pulls/1388/comments"},"review_comment":{"href":"https://api.github.com/repos/excilys/androidannotations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/excilys/androidannotations/pulls/1388/commits"},"statuses":{"href":"https://api.github.com/repos/excilys/androidannotations/statuses/928c0b9744bf7e520f8afaf97333524d822e6060"}}}}