jwgmeligmeyling / blaze-persistence-querydsl Goto Github PK
View Code? Open in Web Editor NEWExtensions for creating Blaze-Persistence queries using QueryDSL
Extensions for creating Blaze-Persistence queries using QueryDSL
Left nested sets can be used for the following two purposes:
Left nested sets are not considered in #8. There's a few things to address in order to resolve this:
CriteriaBuilder
. In order to support a left nested set in the root, we have to render against a CriteriaBuilderFactory
in order to be able to use CriteriaBuilderFactory#startSet
.CriteriaBuilderFactory
in the QueryDSL integration for consistencyBlazeJPAQuery
and SetOperation
are derived from QueryDSL's ProjectableSQLQuery
and UnionOperation
respectively, which do not support left nested sets, the underlying expression model has to change to store the nesting information.BlazeCriteriaVisitor
and BlazeJPAQuery
to impl package.For example:
String queryString = new BlazeJPAQuery<TestEntity>(entityManager, cbf)
.select(book).from(book).where(book.id.lt(1337L))
.union()
.select(book).from(book).where(book.id.gt(42L))
.end()
.getQueryString();
Instead of:
String queryString = new BlazeJPAQuery<TestEntity>(entityManager, cbf)
.union(
select(book).from(book).where(book.id.lt(1337L)),
select(book).from(book).where(book.id.gt(1337L))
)
.getQueryString();
Keep in mind that it should also support deeper nesting, which is problematic as with QueryDSL every builder is also its own expression. That means that we can only assign the right-handside of the set operation after the ongoing builder has ended.
This also makes it easier to use CTE binds that rely on bind expansion.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.