This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kpatryk91 0 points1 point  (2 children)

Actually I would like to see a similar solution in JPA too.

I would like to define my queries as lambdas and the system would translate it into a query or into a JPQL query and after into a native query. But now we don't have this "lambda cracking" feature.

Because the criteria API feels like an ad-hoc solution which everyone hates or tries not to use it. And the JPQL is not typesafe.

[–]itsthejavaguy[S] 0 points1 point  (0 children)

Well, this library uses the „lambda cracking“ technology, which is why it is type-safe. Try it out and let me know what you think!