{"action":"created","issue":{"url":"https://api.github.com/repos/ynkonghao/resource/issues/1","repository_url":"https://api.github.com/repos/ynkonghao/resource","labels_url":"https://api.github.com/repos/ynkonghao/resource/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ynkonghao/resource/issues/1/comments","events_url":"https://api.github.com/repos/ynkonghao/resource/issues/1/events","html_url":"https://github.com/ynkonghao/resource/issues/1","id":386018655,"node_id":"MDU6SXNzdWUzODYwMTg2NTU=","number":1,"title":"关于springboot2.1集成entitymanager的问题","user":{"login":"xiaobu1994","id":44577736,"node_id":"MDQ6VXNlcjQ0NTc3NzM2","avatar_url":"https://avatars1.githubusercontent.com/u/44577736?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaobu1994","html_url":"https://github.com/xiaobu1994","followers_url":"https://api.github.com/users/xiaobu1994/followers","following_url":"https://api.github.com/users/xiaobu1994/following{/other_user}","gists_url":"https://api.github.com/users/xiaobu1994/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaobu1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaobu1994/subscriptions","organizations_url":"https://api.github.com/users/xiaobu1994/orgs","repos_url":"https://api.github.com/users/xiaobu1994/repos","events_url":"https://api.github.com/users/xiaobu1994/events{/privacy}","received_events_url":"https://api.github.com/users/xiaobu1994/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-30T03:06:12Z","updated_at":"2019-04-09T02:05:40Z","closed_at":null,"author_association":"NONE","body":" protected final JpaRepositoryImplementation<?, ?> getTargetRepository(RepositoryInformation information) {\r\n        JpaRepositoryImplementation<?, ?> repository = this.getTargetRepository(information, this.entityManager);\r\n        repository.setRepositoryMethodMetadata(this.crudMethodMetadataPostProcessor.getCrudMethodMetadata());\r\n        return repository;\r\n    }\r\n\r\n    protected JpaRepositoryImplementation<?, ?> getTargetRepository(RepositoryInformation information, EntityManager entityManager) {\r\n        JpaEntityInformation<?, Serializable> entityInformation = this.getEntityInformation(information.getDomainType());\r\n        Object repository = this.getTargetRepositoryViaReflection(information, new Object[]{entityInformation, entityManager});\r\n        Assert.isInstanceOf(JpaRepositoryImplementation.class, repository);\r\n        return (JpaRepositoryImplementation)repository;\r\n    }\r\n\r\n这个版本是final了 该如何处理"},"comment":{"url":"https://api.github.com/repos/ynkonghao/resource/issues/comments/481072911","html_url":"https://github.com/ynkonghao/resource/issues/1#issuecomment-481072911","issue_url":"https://api.github.com/repos/ynkonghao/resource/issues/1","id":481072911,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4MTA3MjkxMQ==","user":{"login":"gangyahaidao","id":25075558,"node_id":"MDQ6VXNlcjI1MDc1NTU4","avatar_url":"https://avatars1.githubusercontent.com/u/25075558?v=4","gravatar_id":"","url":"https://api.github.com/users/gangyahaidao","html_url":"https://github.com/gangyahaidao","followers_url":"https://api.github.com/users/gangyahaidao/followers","following_url":"https://api.github.com/users/gangyahaidao/following{/other_user}","gists_url":"https://api.github.com/users/gangyahaidao/gists{/gist_id}","starred_url":"https://api.github.com/users/gangyahaidao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gangyahaidao/subscriptions","organizations_url":"https://api.github.com/users/gangyahaidao/orgs","repos_url":"https://api.github.com/users/gangyahaidao/repos","events_url":"https://api.github.com/users/gangyahaidao/events{/privacy}","received_events_url":"https://api.github.com/users/gangyahaidao/received_events","type":"User","site_admin":false},"created_at":"2019-04-09T02:05:40Z","updated_at":"2019-04-09T02:05:40Z","author_association":"NONE","body":"使用这个方法来覆盖\r\n`@Override\r\n        protected BaseRepositoryImpl getTargetRepository(RepositoryInformation information, EntityManager entityManager) {\r\n            return new BaseRepositoryImpl<T, I>((Class<T>) information.getDomainType(), entityManager);\r\n        }`"}}
{"actor":{"display_login":"gangyahaidao"}}