{"action":"created","issue":{"url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/427","repository_url":"https://api.github.com/repos/Blazebit/blaze-persistence","labels_url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/427/comments","events_url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/427/events","html_url":"https://github.com/Blazebit/blaze-persistence/issues/427","id":247288953,"number":427,"title":"[question] Not a managed type","user":{"login":"aol-nnov","id":43190,"avatar_url":"https://avatars1.githubusercontent.com/u/43190?v=4","gravatar_id":"","url":"https://api.github.com/users/aol-nnov","html_url":"https://github.com/aol-nnov","followers_url":"https://api.github.com/users/aol-nnov/followers","following_url":"https://api.github.com/users/aol-nnov/following{/other_user}","gists_url":"https://api.github.com/users/aol-nnov/gists{/gist_id}","starred_url":"https://api.github.com/users/aol-nnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aol-nnov/subscriptions","organizations_url":"https://api.github.com/users/aol-nnov/orgs","repos_url":"https://api.github.com/users/aol-nnov/repos","events_url":"https://api.github.com/users/aol-nnov/events{/privacy}","received_events_url":"https://api.github.com/users/aol-nnov/received_events","type":"User","site_admin":false},"labels":[{"id":113480786,"url":"https://api.github.com/repos/Blazebit/blaze-persistence/labels/bug","name":"bug","color":"fc2929","default":true},{"id":515512048,"url":"https://api.github.com/repos/Blazebit/blaze-persistence/labels/core","name":"core","color":"e99695","default":false}],"state":"open","locked":false,"assignee":{"login":"beikov","id":358916,"avatar_url":"https://avatars0.githubusercontent.com/u/358916?v=4","gravatar_id":"","url":"https://api.github.com/users/beikov","html_url":"https://github.com/beikov","followers_url":"https://api.github.com/users/beikov/followers","following_url":"https://api.github.com/users/beikov/following{/other_user}","gists_url":"https://api.github.com/users/beikov/gists{/gist_id}","starred_url":"https://api.github.com/users/beikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beikov/subscriptions","organizations_url":"https://api.github.com/users/beikov/orgs","repos_url":"https://api.github.com/users/beikov/repos","events_url":"https://api.github.com/users/beikov/events{/privacy}","received_events_url":"https://api.github.com/users/beikov/received_events","type":"User","site_admin":false},"assignees":[{"login":"beikov","id":358916,"avatar_url":"https://avatars0.githubusercontent.com/u/358916?v=4","gravatar_id":"","url":"https://api.github.com/users/beikov","html_url":"https://github.com/beikov","followers_url":"https://api.github.com/users/beikov/followers","following_url":"https://api.github.com/users/beikov/following{/other_user}","gists_url":"https://api.github.com/users/beikov/gists{/gist_id}","starred_url":"https://api.github.com/users/beikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beikov/subscriptions","organizations_url":"https://api.github.com/users/beikov/orgs","repos_url":"https://api.github.com/users/beikov/repos","events_url":"https://api.github.com/users/beikov/events{/privacy}","received_events_url":"https://api.github.com/users/beikov/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Blazebit/blaze-persistence/milestones/7","html_url":"https://github.com/Blazebit/blaze-persistence/milestone/7","labels_url":"https://api.github.com/repos/Blazebit/blaze-persistence/milestones/7/labels","id":1151157,"number":7,"title":"1.2.0","description":"This release will be about TREAT support, Entity view fetch strategies and Entity view partial updates (experimental support)","creator":{"login":"beikov","id":358916,"avatar_url":"https://avatars0.githubusercontent.com/u/358916?v=4","gravatar_id":"","url":"https://api.github.com/users/beikov","html_url":"https://github.com/beikov","followers_url":"https://api.github.com/users/beikov/followers","following_url":"https://api.github.com/users/beikov/following{/other_user}","gists_url":"https://api.github.com/users/beikov/gists{/gist_id}","starred_url":"https://api.github.com/users/beikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beikov/subscriptions","organizations_url":"https://api.github.com/users/beikov/orgs","repos_url":"https://api.github.com/users/beikov/repos","events_url":"https://api.github.com/users/beikov/events{/privacy}","received_events_url":"https://api.github.com/users/beikov/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":116,"state":"open","created_at":"2015-06-05T13:35:11Z","updated_at":"2017-08-02T07:05:05Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2017-08-02T06:45:58Z","updated_at":"2017-08-02T09:16:20Z","closed_at":null,"body":"Hello!\r\n\r\nJust stumbled upon your project and it looks quite interesting, however, I'm having a hard time wrapping my head around it. Please, help!\r\n\r\nI use spring-data-jpa in my project and everything worked without a glitch before I've added blaze-persistence..\r\nMy entities have UUID PK and while constructing CriteriaBuilderFactory\r\n```\r\n    @Bean\r\n    @Scope(ConfigurableBeanFactory.SCOPE_SINGLETON)\r\n    @Lazy(false)\r\n    public CriteriaBuilderFactory createCriteriaBuilderFactory() {\r\n        CriteriaBuilderConfiguration config = Criteria.getDefault();\r\n        return config.createCriteriaBuilderFactory(entityManagerFactory);\r\n    }\r\n```\r\nI end up with exception:\r\n```\r\nCaused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.blazebit.persistence.CriteriaBuilderFactory]: Factory method 'createCriteriaBuilderFactory' threw exception; nested exception is java.lang.IllegalArgumentException: Not a managed type: class java.util.UUID\r\n\tat org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]\r\n\t... 44 common frames omitted\r\nCaused by: java.lang.IllegalArgumentException: Not a managed type: class java.util.UUID\r\n\tat org.hibernate.jpa.internal.metamodel.MetamodelImpl.managedType(MetamodelImpl.java:210) ~[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final]\r\n```\r\n\r\nPlease advise how to overcome this issue!\r\n\r\nThanks in advance,\r\nAndrey"},"comment":{"url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/comments/319616780","html_url":"https://github.com/Blazebit/blaze-persistence/issues/427#issuecomment-319616780","issue_url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/427","id":319616780,"user":{"login":"beikov","id":358916,"avatar_url":"https://avatars0.githubusercontent.com/u/358916?v=4","gravatar_id":"","url":"https://api.github.com/users/beikov","html_url":"https://github.com/beikov","followers_url":"https://api.github.com/users/beikov/followers","following_url":"https://api.github.com/users/beikov/following{/other_user}","gists_url":"https://api.github.com/users/beikov/gists{/gist_id}","starred_url":"https://api.github.com/users/beikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beikov/subscriptions","organizations_url":"https://api.github.com/users/beikov/orgs","repos_url":"https://api.github.com/users/beikov/repos","events_url":"https://api.github.com/users/beikov/events{/privacy}","received_events_url":"https://api.github.com/users/beikov/received_events","type":"User","site_admin":false},"created_at":"2017-08-02T09:16:20Z","updated_at":"2017-08-02T09:16:20Z","body":"I think you would need to annotate the relations *item* and *warehouse* as being *insertable = false* and *updatable = false* in order to make this work."}}
{"actor":{"display_login":"beikov"}}