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 My simplified model resembles the following: Now, the question I am struggling with is the question: then basically I need the format in the Applies my spring-data treasure Here is a type of answer in the JPAsk form of the Answer 9 99 Feel free to merge it into the original answer. BooleanExpression .
@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}
Choose from the invoice, where the invoice Superplayer. In the number (SELECT company from the number where active = true)
archive expression , which is for all companies Will get the number and set it to () expression.
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.
Boolean expression expose = invoice. Superplier.number.in (new jpusupf.fr). From (company). (Company Active .isTrue ()) .list (company.nuâ ???? ????) mber));
Comments
Post a Comment