my2iu / Jinq

LINQ-style queries for Java 8
Other
660 stars 71 forks source link

EXISTS #55

Closed my2iu closed 2 years ago

my2iu commented 7 years ago

Add a way to generate EXISTS queries because it's faster for some databases.

lvv83 commented 2 years ago

Hello. Is there any plan about this feature?

my2iu commented 2 years ago

I didn’t have any particular plans for it, but if you need the feature, then I can try to take a look later this month.

lvv83 commented 2 years ago

I would appreciate for this. Thank you!

my2iu commented 2 years ago

Just a reference note about EXISTS queries in JPQL so it's easy to find later:

https://jakarta.ee/specifications/persistence/3.0/jakarta-persistence-spec-3.0.html#exists-expressions

my2iu commented 2 years ago

I've added an .exists() method to streams that will be translated into EXISTS subqueries. I've built new Maven versions with support for this, but I still need to work on documentation fixups and updating the website.

my2iu commented 2 years ago

Documentation has now been updated, so support for exists() should now be complete.