{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13717","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13717/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13717/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13717/events","html_url":"https://github.com/spring-projects/spring-boot/issues/13717","id":338879094,"node_id":"MDU6SXNzdWUzMzg4NzkwOTQ=","number":13717,"title":"Register SpringBeanContainer with default Hibernate setup","user":{"login":"olivergierke","id":128577,"node_id":"MDQ6VXNlcjEyODU3Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/128577?v=4","gravatar_id":"","url":"https://api.github.com/users/olivergierke","html_url":"https://github.com/olivergierke","followers_url":"https://api.github.com/users/olivergierke/followers","following_url":"https://api.github.com/users/olivergierke/following{/other_user}","gists_url":"https://api.github.com/users/olivergierke/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergierke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergierke/subscriptions","organizations_url":"https://api.github.com/users/olivergierke/orgs","repos_url":"https://api.github.com/users/olivergierke/repos","events_url":"https://api.github.com/users/olivergierke/events{/privacy}","received_events_url":"https://api.github.com/users/olivergierke/received_events","type":"User","site_admin":false},"labels":[{"id":16916893,"node_id":"MDU6TGFiZWwxNjkxNjg5Mw==","url":"https://api.github.com/repos/spring-projects/spring-boot/labels/type:%20enhancement","name":"type: enhancement","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":{"login":"snicoll","id":490484,"node_id":"MDQ6VXNlcjQ5MDQ4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/490484?v=4","gravatar_id":"","url":"https://api.github.com/users/snicoll","html_url":"https://github.com/snicoll","followers_url":"https://api.github.com/users/snicoll/followers","following_url":"https://api.github.com/users/snicoll/following{/other_user}","gists_url":"https://api.github.com/users/snicoll/gists{/gist_id}","starred_url":"https://api.github.com/users/snicoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snicoll/subscriptions","organizations_url":"https://api.github.com/users/snicoll/orgs","repos_url":"https://api.github.com/users/snicoll/repos","events_url":"https://api.github.com/users/snicoll/events{/privacy}","received_events_url":"https://api.github.com/users/snicoll/received_events","type":"User","site_admin":false},"assignees":[{"login":"snicoll","id":490484,"node_id":"MDQ6VXNlcjQ5MDQ4NA==","avatar_url":"https://avatars0.githubusercontent.com/u/490484?v=4","gravatar_id":"","url":"https://api.github.com/users/snicoll","html_url":"https://github.com/snicoll","followers_url":"https://api.github.com/users/snicoll/followers","following_url":"https://api.github.com/users/snicoll/following{/other_user}","gists_url":"https://api.github.com/users/snicoll/gists{/gist_id}","starred_url":"https://api.github.com/users/snicoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snicoll/subscriptions","organizations_url":"https://api.github.com/users/snicoll/orgs","repos_url":"https://api.github.com/users/snicoll/repos","events_url":"https://api.github.com/users/snicoll/events{/privacy}","received_events_url":"https://api.github.com/users/snicoll/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/107","html_url":"https://github.com/spring-projects/spring-boot/milestone/107","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/107/labels","id":3216633,"node_id":"MDk6TWlsZXN0b25lMzIxNjYzMw==","number":107,"title":"2.1.0.RC1","description":"","creator":{"login":"wilkinsona","id":914682,"node_id":"MDQ6VXNlcjkxNDY4Mg==","avatar_url":"https://avatars3.githubusercontent.com/u/914682?v=4","gravatar_id":"","url":"https://api.github.com/users/wilkinsona","html_url":"https://github.com/wilkinsona","followers_url":"https://api.github.com/users/wilkinsona/followers","following_url":"https://api.github.com/users/wilkinsona/following{/other_user}","gists_url":"https://api.github.com/users/wilkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/wilkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilkinsona/subscriptions","organizations_url":"https://api.github.com/users/wilkinsona/orgs","repos_url":"https://api.github.com/users/wilkinsona/repos","events_url":"https://api.github.com/users/wilkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/wilkinsona/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":107,"state":"closed","created_at":"2018-03-26T10:08:10Z","updated_at":"2018-10-17T15:29:54Z","due_on":"2018-10-17T07:00:00Z","closed_at":"2018-10-17T15:29:54Z"},"comments":0,"created_at":"2018-07-06T09:58:07Z","updated_at":"2018-10-17T21:18:44Z","closed_at":"2018-10-02T14:41:46Z","author_association":"MEMBER","body":"Spring Framework has added integration with Hibernate's `BeanContainer` API (see [this ticket](https://jira.spring.io/browse/SPR-16305) for details. It would be nice to see that `SpringBeanContainer` registered in the default Hibernate setup, so that converters and entity listeners can be managed via Spring beans."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/430793393","html_url":"https://github.com/spring-projects/spring-boot/issues/13717#issuecomment-430793393","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/13717","id":430793393,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDc5MzM5Mw==","user":{"login":"netmikey","id":1180845,"node_id":"MDQ6VXNlcjExODA4NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1180845?v=4","gravatar_id":"","url":"https://api.github.com/users/netmikey","html_url":"https://github.com/netmikey","followers_url":"https://api.github.com/users/netmikey/followers","following_url":"https://api.github.com/users/netmikey/following{/other_user}","gists_url":"https://api.github.com/users/netmikey/gists{/gist_id}","starred_url":"https://api.github.com/users/netmikey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netmikey/subscriptions","organizations_url":"https://api.github.com/users/netmikey/orgs","repos_url":"https://api.github.com/users/netmikey/repos","events_url":"https://api.github.com/users/netmikey/events{/privacy}","received_events_url":"https://api.github.com/users/netmikey/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T21:18:44Z","updated_at":"2018-10-17T21:18:44Z","author_association":"NONE","body":"I've been waiting for the 2.1.0.RC1 to use that feature but I can't seem to make it work. I've been looking through Spring and Hibernate documentations but couldn't find an example.\r\n\r\nWith an entity declaration like this:\r\n```java\r\n@Entity\r\n@EntityListeners(SomeEntityListener.class)\r\npublic class SomeEntity extends AbstractPersistable<Integer> {\r\n...\r\n```\r\nJust adding `@Component` to EntityListener-classes doesn't seem to do the trick:\r\n```java\r\n@Component\r\npublic class SomeEntityListener {\r\n    \t@Autowired\r\n\tprivate SomeOtherRepository someOtherRepository;\r\n...\r\n```\r\nIn the above code, `someOtherRepository` is not injected (it's `null` when the EntityListener methods are invoked), so I guess `SomeEntityListener` is still managed by Hibernate instead of it delegating to Spring.\r\n\r\nWhat am I doing wrong?"}}
{"actor":{"display_login":"netmikey"}}