{"action":"opened","issue":{"url":"https://api.github.com/repos/buggins/hibernated/issues/29","labels_url":"https://api.github.com/repos/buggins/hibernated/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/buggins/hibernated/issues/29/comments","events_url":"https://api.github.com/repos/buggins/hibernated/issues/29/events","html_url":"https://github.com/buggins/hibernated/issues/29","id":124240679,"number":29,"title":"problem getting @ManyToOne working","user":{"login":"SingingBush","id":870567,"avatar_url":"https://avatars.githubusercontent.com/u/870567?v=3","gravatar_id":"","url":"https://api.github.com/users/SingingBush","html_url":"https://github.com/SingingBush","followers_url":"https://api.github.com/users/SingingBush/followers","following_url":"https://api.github.com/users/SingingBush/following{/other_user}","gists_url":"https://api.github.com/users/SingingBush/gists{/gist_id}","starred_url":"https://api.github.com/users/SingingBush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SingingBush/subscriptions","organizations_url":"https://api.github.com/users/SingingBush/orgs","repos_url":"https://api.github.com/users/SingingBush/repos","events_url":"https://api.github.com/users/SingingBush/events{/privacy}","received_events_url":"https://api.github.com/users/SingingBush/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-29T17:16:45Z","updated_at":"2015-12-29T17:16:45Z","closed_at":null,"body":"the following seems to break:\r\n\r\n```\r\n@Entity\r\n@Table(\"books\")\r\npublic class Book {\r\n    public:\r\n        @Id\r\n        @Generated\r\n        Uint id;\r\n\r\n        @Column(\"title\", 250) @NotNull\r\n        string title;\r\n\r\n        @ManyToOne @JoinColumn(\"author_id\") @NotNull\r\n        Person author;\r\n}\r\n\r\n@Entity\r\n@Table(\"people\")\r\npublic class Person {\r\n    public:\r\n        @Id\r\n        @Generated\r\n        Uint id;\r\n\r\n        @Column(\"name\", 50) @NotNull\r\n        string name;\r\n}\r\n```\r\n\r\nwhen I try to get books by user the program bombs out:\r\n\r\n```\r\nQuery q = session\r\n        .createQuery(\"FROM Book WHERE author=:person\")\r\n        .setParameter(\"person\", somePersonObject);\r\nreturn q.list!Book();\r\n```"}}