{"action":"created","issue":{"url":"https://api.github.com/repos/la-team/light-admin/issues/245","repository_url":"https://api.github.com/repos/la-team/light-admin","labels_url":"https://api.github.com/repos/la-team/light-admin/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/la-team/light-admin/issues/245/comments","events_url":"https://api.github.com/repos/la-team/light-admin/issues/245/events","html_url":"https://github.com/la-team/light-admin/issues/245","id":127886695,"number":245,"title":"Update to newer version of Spring Data JPA (1.8.0.RELEASE - 1.9.2.RELEASE)","user":{"login":"alexandrustefan","id":5198180,"avatar_url":"https://avatars.githubusercontent.com/u/5198180?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrustefan","html_url":"https://github.com/alexandrustefan","followers_url":"https://api.github.com/users/alexandrustefan/followers","following_url":"https://api.github.com/users/alexandrustefan/following{/other_user}","gists_url":"https://api.github.com/users/alexandrustefan/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrustefan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrustefan/subscriptions","organizations_url":"https://api.github.com/users/alexandrustefan/orgs","repos_url":"https://api.github.com/users/alexandrustefan/repos","events_url":"https://api.github.com/users/alexandrustefan/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrustefan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-01-21T09:58:08Z","updated_at":"2016-07-06T02:04:06Z","closed_at":null,"body":"While trying to integrate with lightadmin, I encountered the following exception at the initialization of the `jpaMapppingContext`\r\n\r\n```\r\nCaused by: java.lang.NoSuchMethodError: org.springframework.data.jpa.mapping.JpaMetamodelMappingContext.<init>(Ljavax/persistence/metamodel/Metamodel;)V\r\n```\r\n\r\nAfter having a look I've found the problem comes from `light-admin/lightadmin-core/src/main/java/org/lightadmin/core/config/bootstrap/JpaMetamodelMappingContextFactoryBean.java` file, at line **53** where the `JpaMetamodelMappingContext` is being initialized.\r\n\r\n```java\r\nJpaMetamodelMappingContext context = new JpaMetamodelMappingContext(metamodel);\r\n```\r\n\r\nNewer versions of spring-data-jpa, changed the constructor from one instance of `Metamodel ` to a **Set**, so basically in order to use light-admin you have to use an older version (e.g 1.7.0.RELEASE)"},"comment":{"url":"https://api.github.com/repos/la-team/light-admin/issues/comments/230653432","html_url":"https://github.com/la-team/light-admin/issues/245#issuecomment-230653432","issue_url":"https://api.github.com/repos/la-team/light-admin/issues/245","id":230653432,"user":{"login":"viruscamp","id":5574216,"avatar_url":"https://avatars.githubusercontent.com/u/5574216?v=3","gravatar_id":"","url":"https://api.github.com/users/viruscamp","html_url":"https://github.com/viruscamp","followers_url":"https://api.github.com/users/viruscamp/followers","following_url":"https://api.github.com/users/viruscamp/following{/other_user}","gists_url":"https://api.github.com/users/viruscamp/gists{/gist_id}","starred_url":"https://api.github.com/users/viruscamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viruscamp/subscriptions","organizations_url":"https://api.github.com/users/viruscamp/orgs","repos_url":"https://api.github.com/users/viruscamp/repos","events_url":"https://api.github.com/users/viruscamp/events{/privacy}","received_events_url":"https://api.github.com/users/viruscamp/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T02:04:06Z","updated_at":"2016-07-06T02:04:06Z","body":"```java\r\npublic JpaMetamodelMappingContext(Set<Metamodel> models)\r\n```\r\nThis contructor also exist in spring-data-jap-1.7.4 .\r\nSo, by using this method, it is compatible from 1.7 to 1.9 ."}}
{"actor":{"display_login":"viruscamp"}}