{"action":"closed","issue":{"url":"https://api.github.com/repos/HeinrichReimer/inquiry/issues/1","repository_url":"https://api.github.com/repos/HeinrichReimer/inquiry","labels_url":"https://api.github.com/repos/HeinrichReimer/inquiry/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/HeinrichReimer/inquiry/issues/1/comments","events_url":"https://api.github.com/repos/HeinrichReimer/inquiry/issues/1/events","html_url":"https://github.com/HeinrichReimer/inquiry/issues/1","id":157758085,"number":1,"title":"Reference feature","user":{"login":"HeinrichReimer","id":5065698,"avatar_url":"https://avatars.githubusercontent.com/u/5065698?v=3","gravatar_id":"","url":"https://api.github.com/users/HeinrichReimer","html_url":"https://github.com/HeinrichReimer","followers_url":"https://api.github.com/users/HeinrichReimer/followers","following_url":"https://api.github.com/users/HeinrichReimer/following{/other_user}","gists_url":"https://api.github.com/users/HeinrichReimer/gists{/gist_id}","starred_url":"https://api.github.com/users/HeinrichReimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeinrichReimer/subscriptions","organizations_url":"https://api.github.com/users/HeinrichReimer/orgs","repos_url":"https://api.github.com/users/HeinrichReimer/repos","events_url":"https://api.github.com/users/HeinrichReimer/events{/privacy}","received_events_url":"https://api.github.com/users/HeinrichReimer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HeinrichReimer/inquiry/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"HeinrichReimer","id":5065698,"avatar_url":"https://avatars.githubusercontent.com/u/5065698?v=3","gravatar_id":"","url":"https://api.github.com/users/HeinrichReimer","html_url":"https://github.com/HeinrichReimer","followers_url":"https://api.github.com/users/HeinrichReimer/followers","following_url":"https://api.github.com/users/HeinrichReimer/following{/other_user}","gists_url":"https://api.github.com/users/HeinrichReimer/gists{/gist_id}","starred_url":"https://api.github.com/users/HeinrichReimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeinrichReimer/subscriptions","organizations_url":"https://api.github.com/users/HeinrichReimer/orgs","repos_url":"https://api.github.com/users/HeinrichReimer/repos","events_url":"https://api.github.com/users/HeinrichReimer/events{/privacy}","received_events_url":"https://api.github.com/users/HeinrichReimer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/HeinrichReimer/inquiry/milestones/1","html_url":"https://github.com/HeinrichReimer/inquiry/milestones/3.0","labels_url":"https://api.github.com/repos/HeinrichReimer/inquiry/milestones/1/labels","id":1799677,"number":1,"title":"3.0","description":"","creator":{"login":"HeinrichReimer","id":5065698,"avatar_url":"https://avatars.githubusercontent.com/u/5065698?v=3","gravatar_id":"","url":"https://api.github.com/users/HeinrichReimer","html_url":"https://github.com/HeinrichReimer","followers_url":"https://api.github.com/users/HeinrichReimer/followers","following_url":"https://api.github.com/users/HeinrichReimer/following{/other_user}","gists_url":"https://api.github.com/users/HeinrichReimer/gists{/gist_id}","starred_url":"https://api.github.com/users/HeinrichReimer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeinrichReimer/subscriptions","organizations_url":"https://api.github.com/users/HeinrichReimer/orgs","repos_url":"https://api.github.com/users/HeinrichReimer/repos","events_url":"https://api.github.com/users/HeinrichReimer/events{/privacy}","received_events_url":"https://api.github.com/users/HeinrichReimer/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2016-05-31T20:06:35Z","updated_at":"2016-05-31T22:34:10Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-05-31T20:05:22Z","updated_at":"2016-05-31T22:34:10Z","closed_at":"2016-05-31T22:34:10Z","body":"The idea is to reference other `@Table` annotated classes directly from `@Collumn` annotated fields.\r\n\r\n```java\r\n@Table\r\nclass A{\r\n    @Column int a;\r\n    @Column B b; //<- This is the reference\r\n    @Column String c;\r\n    public A(){}\r\n}\r\n```\r\n\r\n```java\r\n@Table\r\nclass B{\r\n    @Column long a;\r\n    @Column byte[] c;\r\n    public B(){}\r\n}\r\n```\r\n\r\n*A* would reference *B* and when *A* gets inserted *B* is saved in its own table and *A* will store the row ID.\r\nWhen you load *A* from the database Inquiry will read out the referenced row from *B*'s table and load that into *A*.\r\n\r\n*(See the [original issue](https://github.com/afollestad/inquiry/issues/10) by @jlelse)*"}}
{"actor":{"display_login":"HeinrichReimer"}}