Per-Ake Minborg
Per-Ake Minborg
Thanks for your reply. I ended up having a facade `ArchitectureRules` with methods that take an enum. The facade then executes a set of Arch rules applicable for that enum:...
This is how it looks like in a module doing the actual tests (doing all the available tests): ``` @AnalyzeClasses(packages = "com.speedment.common.function", importOptions = {DoNotIncludeTests.class}) final class ArchitectureTest { @ArchTest...
This might be a fundamental problem. Joins and skip/limit do not work together. Needs to be handled somehow. ``` Exception in thread "main" org.hibernate.QueryException: firstResult/maxResults not supported in conjunction with...
We could add a parameter in the `StreamConfiguration` `resolveJoinSkipLimit(JoinSkipLimitResolver joinSkipResolver)` `FAIL, FAVOR_JOIN, FAVOR_SKIP_LIMIT`
This should work by moving the skip to the JVM: ``` final StreamConfiguration configuration = StreamConfiguration.of(Film.class).joining(Film$.actors).joining(Film$.language); jpaStreamer.stream(configuration) .sorted(Film$.length.reversed()) .limit(10) .forEach(System.out::println); ```
The generation of the support classes is done using an annotation processor. Perhaps this can provide some guidelines : https://kotlinlang.org/docs/ksp-overview.html
The annotation processor is only tested using Java. I am not a Kotlin expert but maybe the stage whereby Java code is inspected in the annotation processor does not exist...
Understood. Let's check back in a few weeks and see.
We could potentially add predicate builders like: ``` Film$.actor.where().lastName.startsWith("A") ``` or ``` Film$.actor.flatMap().lastName.startsWith("A") ```
Can you provide a code snippet showing the problem please?