java - QueryDsl - subquery in collection expression -


I am using spring-data-jpa and querydsl (3.2.3) - predictions based on user filler / input Construction of M. All of these come on BooleanExpression .

My simplified model resembles the following: @interity public class invoices {@ManyToOne Personal Supplier Supplier; } @Entity Public Class Supplier {Private String Number; } @Entity Public Class Company {Private string number; Private Boolean Active}

Now, the question I am struggling with is the question:

  Choose from the invoice, where the invoice Superplayer. In the number (SELECT company from the number where active = true)   

then basically I need the format in the archive expression , which is for all companies Will get the number and set it to () expression.

Applies my spring-data treasure CustomQueryDslJpaRepository which in turn extends JpaRepository and QueryDslPredicateExecutor . It's straightforward, but I'm quite new to querydsl and have not found the solution yet.

Here is a type of answer in the JPAsk form of the Answer 9 99

  Boolean expression expose = invoice. Superplier.number.in (new jpusupf.fr). From (company). (Company Active .isTrue ()) .list (company.nuâ ???? ????) mber));   

Feel free to merge it into the original answer.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -