blaze-persistence icon indicating copy to clipboard operation
blaze-persistence copied to clipboard

Limit optimization leads to problematic join condition for composite PKs

Open beikov opened this issue 2 years ago • 5 comments

The fix for https://github.com/Blazebit/blaze-persistence/issues/1810 causes some issues when trying to limit something that has a composite primary key, because the generated query looks like join CompositePkEntity e on e = (limit((select e2.pk1, e2.pk2 from CompositePkEntity e2 ...),1)) which Hibernate complains about.

beikov avatar Nov 23 '23 09:11 beikov

Hello @beikov, Is there any progress going on on this bug ?

haraleib avatar Dec 02 '24 07:12 haraleib

Hi @haraleib, no, I'm not currently working on this. Is it critical for you? If so, what version of Hibernate ORM are you using?

beikov avatar Dec 06 '24 16:12 beikov

As we want to move to an official BlazePersistence Version, this bug is the last regression we have so far to do so.

haraleib avatar Dec 09 '24 08:12 haraleib

Ok, but what version of Hibernate ORM are you using?

beikov avatar Dec 09 '24 14:12 beikov

5.4.4.Final

haraleib avatar Jan 07 '25 17:01 haraleib