Re: [hibernate-dev] Joins over type variable defined assocations NPE problems

2018-03-14 Thread Christian Beikov
Thanks for the feedback. I tried removing the attribute from the PropertyMapping at first, but it didn't work out in the end. Not remembering the full details, but it had something to do with load plans trying to resolve the properties contained in the subclass propery closure against the

Re: [hibernate-dev] Joins over type variable defined assocations NPE problems

2018-03-13 Thread Steve Ebersole
I think it is ok to disallow implicit downcasting in cases where the downcast is non-deterministic. From you example domain, I think it is ok to disallow the implicit downcast in : `from BaseEntity e where e.relation.id = ...' with either a specific error ("cannot implicitly downcast BaseEntity

Re: [hibernate-dev] Joins over type variable defined assocations NPE problems

2018-03-12 Thread andrea boriero
Hi Christian, I have looked at your PR and at the moment I cannot find another easy clean solution for this issue not requiring as you said quite a lot of work. On 9 March 2018 at 20:20, Christian Beikov wrote: > Hey, > > so the problems related to the type