Questions tagged [jinq]

Jinq is a Java library that executes Java 8 code "symbolically" in order to translate such code into semantically equivalent JPQL or SQL.

Jinq is a Java library that provides developers a natural way to write database queries in and . Developers can treat their database data like normal Java objects stored in collections. They can iterate over them and filter them using normal Java commands, and all their code will be automatically translated into database queries.

5 questions
2
votes
1 answer

Is it possible to use Predicate when creating queries for Jinq?

My question is about Jinq , and I am using version 1.8.9 which currently is the latest release. I am trying to use Jinq for implementing a general reusable JPA (Java Persistence API) typesafe query method with the Java 8 lambda (functional…
Pelle
  • 137
  • 2
  • 6
1
vote
0 answers

How to create a Java SerializedLambda from a Kotlin lambda?

If I have a Kotlin lambda, eg. { a -> a.b } ...I know this can be passed into a Java Serializable interface, eg: interface I extends Serializable { public int f(T t); } However, the actual type of the lambda is not SerializedLambda. Is it…
chris
  • 1,731
  • 4
  • 26
  • 33
1
vote
1 answer

How to search Set using Jinq

I have collection Set in my entity class. Tag class contains only Long id and String value. Im trying to find Place by Tag but im getting error Could not analyze lambda code String name = places.getTag().getName(); if (name != null) { …
Jakub Pomykała
  • 2,082
  • 3
  • 27
  • 58
0
votes
1 answer

DOT node with no left-hand-side

I'm using jinq version 1.8.11 with hibernate version 4.3 Using hibernate session factory and not entity manager. I'm trying the following query: JPAJinqStream routineStream = stream.streamAll(getCurrentSession(), Routine.class); if…
Amitai
  • 43
  • 8
0
votes
0 answers

JPA can't convert PostgreSQL POINT type

I am in the process converting an existing Spring project to JPA/Jinq. One of my database columns is using the PostGIS geometry POINT type. I am mapping the table for that column to an entity called City. The class for that something like…
Ecliptica
  • 760
  • 2
  • 8
  • 21