my2iu / Jinq

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

Add support for UNION operations #42

Open my2iu opened 7 years ago

my2iu commented 7 years ago

Actually, JPA does not support UNION in queries, so this can't be implemented at the moment.

my2iu commented 7 years ago

Alternately, there should be programmatic ways to build up huge chains of ORs.

my2iu commented 7 years ago

I implemented this, but I forgot to handle the corner case of a query with an empty where restriction. I've fixed it in the tree, but I'll hold off closing this issue until I make a release with that fix in it.