Re: [hibernate-dev] Treat support

2016-08-23 Thread Emond Papegaaij
Hi Christian, I don't think HHH-11062 is a bug in the Criteria to HQL/JPQL rendering. In the JPQL it renders as: select treat(generatedAlias0 as org.hibernate.bugs.MyEntity) from MyEntity as generatedAlias0 Which seems ok to me, even though the treat is superfluous in this case. Best regards,

Re: [hibernate-dev] Treat support

2016-08-23 Thread Christian Beikov
Hi Emond, thanks for the list, I already linked some of the issues you opened. HHH-10561, HHH-10759, HHH-10767 and HHH-11062 are apparently bugs in the Criteria to HQL/JPQL rendering and I am trying to directly target the HQL/JPQL parts. Regarding HHH-10768 see the comments on the issue. Reg

Re: [hibernate-dev] Treat support

2016-08-23 Thread Emond Papegaaij
Hi Christian, In the past few months I've reported quite a few bugs on treat support in Hibernate. I think some of them are already covered by your tests, but not all. You might want to add those to your tests. These are the issues I've reported: https://hibernate.atlassian.net/browse/HHH-10561

Re: [hibernate-dev] Treat support

2016-08-23 Thread Christian Beikov
Hi, so I finished my work on the testsuite for the treat operator. I also started a forum topic for this discussion: https://forum.hibernate.org/viewtopic.php?f=1&t=1043553 If anyone is interested, I also started a discussion in the EclipeLink f

Re: [hibernate-dev] Treat support

2016-08-09 Thread Christian Beikov
Hello again, I finished the first part of the test cases for root treats and many-to-one treats. I also tried to explain how I would expect treat to work and present a reduction/translation strategy to be able to reduce thinking just about the base cases. Could you comment on that? https://git

Re: [hibernate-dev] Treat support

2016-08-05 Thread Christian Beikov
Hey Steve, Am 04.08.2016 um 15:52 schrieb Steve Ebersole: > Hey Christian, > > In general terms, one of the items on the docket for SQM is better > TREAT support; but there is a lot that goes into that statement. One > aspect is what we support in the parser properly in terms of > recognition.

Re: [hibernate-dev] Treat support

2016-08-04 Thread Steve Ebersole
Hey Christian, In general terms, one of the items on the docket for SQM is better TREAT support; but there is a lot that goes into that statement. One aspect is what we support in the parser properly in terms of recognition. Another is how this translates into the generates SQL query. All of th