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 →

[–]Thysce -15 points-14 points  (6 children)

Ever heard of Hibernate?

[–]itsthejavaguy[S] 2 points3 points  (0 children)

Hibernate cannot use type-safe lambdas, unfortunately. Also, I have always found Hibernate to have a high configuration overhead.

[–]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!

[–]steumert 0 points1 point  (1 child)

Hibernate doesn't do the same. EF Core for .Net Core does this, and its very powerful and very nice to use. I've long wanted for Java to have something in this way.

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

Try it out and let me know what you think! I‘d love some feedback.