{"action":"created","issue":{"url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/614","repository_url":"https://api.github.com/repos/Blazebit/blaze-persistence","labels_url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/614/labels{/name}","comments_url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/614/comments","events_url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/614/events","html_url":"https://github.com/Blazebit/blaze-persistence/issues/614","id":345711911,"node_id":"MDU6SXNzdWUzNDU3MTE5MTE=","number":614,"title":"Support correlation mappings in updatable entity views","user":{"login":"haderlena","id":38649052,"node_id":"MDQ6VXNlcjM4NjQ5MDUy","avatar_url":"https://avatars2.githubusercontent.com/u/38649052?v=4","gravatar_id":"","url":"https://api.github.com/users/haderlena","html_url":"https://github.com/haderlena","followers_url":"https://api.github.com/users/haderlena/followers","following_url":"https://api.github.com/users/haderlena/following{/other_user}","gists_url":"https://api.github.com/users/haderlena/gists{/gist_id}","starred_url":"https://api.github.com/users/haderlena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haderlena/subscriptions","organizations_url":"https://api.github.com/users/haderlena/orgs","repos_url":"https://api.github.com/users/haderlena/repos","events_url":"https://api.github.com/users/haderlena/events{/privacy}","received_events_url":"https://api.github.com/users/haderlena/received_events","type":"User","site_admin":false},"labels":[{"id":113480786,"node_id":"MDU6TGFiZWwxMTM0ODA3ODY=","url":"https://api.github.com/repos/Blazebit/blaze-persistence/labels/bug","name":"bug","color":"fc2929","default":true},{"id":113480788,"node_id":"MDU6TGFiZWwxMTM0ODA3ODg=","url":"https://api.github.com/repos/Blazebit/blaze-persistence/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":515512276,"node_id":"MDU6TGFiZWw1MTU1MTIyNzY=","url":"https://api.github.com/repos/Blazebit/blaze-persistence/labels/entity-view","name":"entity-view","color":"006b75","default":false},{"id":684184958,"node_id":"MDU6TGFiZWw2ODQxODQ5NTg=","url":"https://api.github.com/repos/Blazebit/blaze-persistence/labels/updatable-entity-view","name":"updatable-entity-view","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"beikov","id":358916,"node_id":"MDQ6VXNlcjM1ODkxNg==","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,"node_id":"MDQ6VXNlcjM1ODkxNg==","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/17","html_url":"https://github.com/Blazebit/blaze-persistence/milestone/17","labels_url":"https://api.github.com/repos/Blazebit/blaze-persistence/milestones/17/labels","id":3069125,"node_id":"MDk6TWlsZXN0b25lMzA2OTEyNQ==","number":17,"title":"1.3.0","description":"* EMBEDDING_VIEW function support\r\n* Use of entity collection DML for updatable entity views\r\n* OUTER support for subquery correlation path","creator":{"login":"beikov","id":358916,"node_id":"MDQ6VXNlcjM1ODkxNg==","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":9,"closed_issues":20,"state":"open","created_at":"2018-01-28T16:39:47Z","updated_at":"2018-08-02T09:41:39Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-07-30T11:06:50Z","updated_at":"2018-08-03T08:55:23Z","closed_at":null,"author_association":"NONE","body":"<!--- This template is for bugs. Remove it for other issues. -->\r\n\r\n<!--- Choose an expressive title -->\r\n### Description\r\n<!--- Explain what you did and maybe show some code excerpts -->\r\nI tried to use a correlation mapping with an `UpdatableEntityView` in an `UpdatableEntityView`. Even with `@UpdatableMapping(updatable = false)` I get a NPE (see stack trace).\r\n\r\n### Expected behavior\r\n<!--- What outcome would you expect? -->\r\nsee Description\r\n\r\n### Actual behavior\r\n<!--- What happened that you didn't expect? -->\r\nsee Description\r\n\r\n### Steps to reproduce\r\n<!--- Give us enough details so we can create a testcase that reproduces this problem -->\r\n<!--- Idealy you would create a test case based on the template project from: https://github.com/Blazebit/blaze-persistence-test-case-template -->\r\n<!--- Either attach a ZIP containing the test case or create a pull request against the test-case-template repository and put the link to the PR here -->\r\nsee Description\r\n\r\n### Environment\r\n<!--- Environment info like e.g.\t\t\t\t\t-->\r\n<!--- Version:            1.2.0-Alpha1\t\t\t\t-->\r\n<!--- JPA-Provider:       Hibernate 5.2.7.Final\t\t-->\r\n<!--- DBMS:               PostgreSQL 9.6.2\t\t\t-->\r\n<!--- Application Server: Java SE\t\t\t\t\t-->\r\n\r\nVersion: 1.3.0-Alpha2           \r\nJPA-Provider:       \r\nDBMS:               \r\nApplication Server: \r\n\r\n```\r\nJul 30, 2018 12:56:40 PM com.blazebit.persistence.impl.CriteriaBuilderConfigurationProviderImpl createConfiguration\r\nINFORMATION: Blaze-Persistence version: Blaze-Persistence 'Fury' 1.3.0-Alpha2\r\n\r\norg.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void com.curecomp.testsuite.integration.persistence.EntityViewManagerProducer.init() on com.curecomp.testsuite.integration.persistence.EntityViewManagerProducer@31054abd\r\n\r\n\tat org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:100)\r\n\tat org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:81)\r\n\tat org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:126)\r\n\tat org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:162)\r\n\tat org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:70)\r\n\tat org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)\r\n\tat org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)\r\n\tat org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:742)\r\n\tat org.jboss.weld.injection.producer.AbstractMemberProducer.getReceiver(AbstractMemberProducer.java:123)\r\n\tat org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:158)\r\n\tat org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:181)\r\n\tat org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)\r\n\tat org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)\r\n\tat org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:141)\r\n\tat org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)\r\n\tat org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)\r\n\tat org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:99)\r\n\tat com.blazebit.persistence.view.EntityViewManager$769573355$Proxy$_$$_WeldClientProxy.getReference(Unknown Source)\r\n\tat com.curecomp.support.testsuite.service.clientServiceTest.CreateClientTest.before(CreateClientTest.java:74)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)\r\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)\r\n\tat com.curecomp.testsuite.integration.ContainerRunner$3$1.evaluate(ContainerRunner.java:296)\r\n\tat org.junit.rules.RunRules.evaluate(RunRules.java:20)\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat com.curecomp.testsuite.integration.ContainerRunner$2.evaluate(ContainerRunner.java:229)\r\n\tat org.junit.rules.RunRules.evaluate(RunRules.java:20)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.junit.runner.JUnitCore.run(JUnitCore.java:137)\r\n\tat com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)\r\n\tat com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)\r\nCaused by: java.lang.reflect.InvocationTargetException\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:98)\r\n\t... 44 more\r\nCaused by: java.lang.IllegalArgumentException: An error happened during entity view metamodel building!\r\n\tat com.blazebit.persistence.view.impl.EntityViewManagerImpl.<init>(EntityViewManagerImpl.java:175)\r\n\tat com.blazebit.persistence.view.impl.EntityViewConfigurationImpl.createEntityViewManager(EntityViewConfigurationImpl.java:117)\r\n\tat com.blazebit.persistence.view.impl.EntityViewConfigurationImpl.createEntityViewManager(EntityViewConfigurationImpl.java:122)\r\n\tat com.curecomp.testsuite.integration.persistence.EntityViewManagerProducer.init(EntityViewManagerProducer.java:39)\r\n\t... 49 more\r\nCaused by: java.lang.NullPointerException\r\n\tat com.blazebit.persistence.view.impl.metamodel.MethodAttributeMapping.determineMappedBy(MethodAttributeMapping.java:293)\r\n\tat com.blazebit.persistence.view.impl.metamodel.AbstractMethodSingularAttribute.<init>(AbstractMethodSingularAttribute.java:147)\r\n\tat com.blazebit.persistence.view.impl.metamodel.attribute.CorrelatedMethodSingularAttribute.<init>(CorrelatedMethodSingularAttribute.java:33)\r\n\tat com.blazebit.persistence.view.impl.metamodel.MethodAttributeMapping.getMethodAttribute(MethodAttributeMapping.java:510)\r\n\tat com.blazebit.persistence.view.impl.metamodel.ManagedViewTypeImpl.<init>(ManagedViewTypeImpl.java:157)\r\n\tat com.blazebit.persistence.view.impl.metamodel.ViewTypeImpl.<init>(ViewTypeImpl.java:46)\r\n\tat com.blazebit.persistence.view.impl.metamodel.ViewMappingImpl.getManagedViewType(ViewMappingImpl.java:557)\r\n\tat com.blazebit.persistence.view.impl.metamodel.ViewMetamodelImpl.<init>(ViewMetamodelImpl.java:67)\r\n\tat com.blazebit.persistence.view.impl.EntityViewManagerImpl.<init>(EntityViewManagerImpl.java:159)\r\n\t... 52 more\r\n```"},"comment":{"url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/comments/410190617","html_url":"https://github.com/Blazebit/blaze-persistence/issues/614#issuecomment-410190617","issue_url":"https://api.github.com/repos/Blazebit/blaze-persistence/issues/614","id":410190617,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDE5MDYxNw==","user":{"login":"beikov","id":358916,"node_id":"MDQ6VXNlcjM1ODkxNg==","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":"2018-08-03T08:55:23Z","updated_at":"2018-08-03T08:55:23Z","author_association":"MEMBER","body":"I'm going to support cascading just like we talked about which will hopefully allow you to remove a few lines of code ;)"}}
{"actor":{"display_login":"beikov"}}