Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ff5005f
Preparing for java 17 prime time
velo Aug 2, 2024
285ebc0
Apply java 17 best praticles
velo Aug 2, 2024
d79035d
Cleanup vars, switches, pattern matching and text blocks
velo Aug 21, 2024
debc5ed
Disabling SQLServer integration testing
velo Dec 12, 2024
8d4a282
Added missing @Serial (#641)
velo Oct 23, 2024
b94976d
Removing obsolete code, ancient modules and dropped features
velo Jul 7, 2024
cddd301
Eliminate mysema.lang dependency
velo Aug 30, 2024
dcb1de0
Merge remote-tracking branch 'origin/java17' into querydsl-7.0
velo Dec 13, 2024
8897c6f
Bump org.eclipse.jdt:ecj from 3.33.0 to 3.40.0
dependabot[bot] Dec 13, 2024
42aee21
Merge remote-tracking branch 'origin/remove_mysema' into querydsl-7.0
velo Dec 13, 2024
59c0bbd
Bump org.apache.logging.log4j:log4j-core from 2.24.2 to 2.24.3
dependabot[bot] Dec 13, 2024
c7aff10
Merge remote-tracking branch 'origin/sink_spring_roo' into querydsl-7.0
velo Dec 13, 2024
1ff1d25
Bump org.hibernate.validator:hibernate-validator
dependabot[bot] Dec 13, 2024
1565d3c
Bump org.eclipse.jdt:ecj from 3.33.0 to 3.40.0 (#725)
github-actions[bot] Dec 13, 2024
21a4eed
Bump org.apache.logging.log4j:log4j-core from 2.24.2 to 2.24.3 (#729)
github-actions[bot] Dec 13, 2024
d15100b
Bump org.hibernate.validator:hibernate-validator from 8.0.1.Final to …
github-actions[bot] Dec 13, 2024
701efd5
---
dependabot[bot] May 31, 2024
ac9e833
Bump hibernate version
velo May 31, 2024
9d16135
bump eclipselink version to 5.0.0-B02
velo Jul 2, 2024
15bf922
Bump hibernate version
velo Aug 2, 2024
b27394d
Fix code to work with hibernate 7 and eclipselink 5
velo Aug 2, 2024
343a1be
Bump eclipselink to 5.0.0-B03 release
velo Sep 13, 2024
9a1e7de
Bump hibernate core version to 7.0.0.Beta2
velo Nov 25, 2024
062533e
Bump eclipselink vesion to 5.0.0-B04
velo Nov 25, 2024
30fc9a4
Bump hibernate version to 7.0.0.Beta3
velo Dec 9, 2024
b89c75b
Last stable build with hibernate-core beta-1
velo Dec 14, 2024
43141e8
Use same hibernate-core version on testing
velo Dec 14, 2024
adac829
Extract more details about ksp test failure
velo Dec 14, 2024
d23037e
Removing openrewrite execution, as recent changes made it irrelevant
velo Dec 14, 2024
128a207
Temporaly disabling ksp testing
velo Dec 14, 2024
365861a
Use JPA 3.2.0 + hibernate 7.0 and eclipselink 5.0 (#721)
github-actions[bot] Dec 14, 2024
eb2777d
Merge remote-tracking branch 'origin/master' into querydsl-7.0
velo Dec 14, 2024
a8d8c7d
Update dependabot.yml to use beta on querydsl-7 branch
velo Dec 14, 2024
4bf7af1
Merge remote-tracking branch 'origin/master' into querydsl-7.0
velo Dec 14, 2024
c59fd4b
Merge remote-tracking branch 'origin/master' into querydsl-7.0
velo Dec 14, 2024
26e93a7
Bump net.bytebuddy:byte-buddy from 1.15.10 to 1.15.11
dependabot[bot] Dec 15, 2024
37fe938
Bump net.bytebuddy:byte-buddy from 1.15.10 to 1.15.11 (#737)
github-actions[bot] Dec 15, 2024
d25175f
Merge remote-tracking branch 'origin/master' into querydsl-7.0
velo Dec 15, 2024
9076fde
Merge remote-tracking branch 'origin/master' into querydsl-7.0
velo Dec 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 10 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-root</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>

<packaging>pom</packaging>
<name>Querydsl</name>
Expand Down Expand Up @@ -87,6 +87,9 @@
</distributionManagement>

<properties>
<!-- removing old modules on 7.0 release -->
<japicmp.skip>true</japicmp.skip>

<failIfNoTests>false</failIfNoTests>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.homepage>http://www.querydsl.com</project.homepage>
Expand All @@ -96,13 +99,13 @@
<argLine>-Xms256m -Xmx512m</argLine>

<!-- default bytecode version for src/main -->
<main.java.version>11</main.java.version>
<main.java.version>17</main.java.version>
<latest.java.version>21</latest.java.version>

<git-code-format-maven-plugin.version>5.3</git-code-format-maven-plugin.version>

<junit.version>5.11.3</junit.version>
<ecj.version>3.33.0</ecj.version>
<ecj.version>3.40.0</ecj.version>
<jdo.version>3.2.1</jdo.version>
<springboot.version>3.4.0</springboot.version>
<spring.version>6.2.1</spring.version>
Expand All @@ -125,17 +128,16 @@
<r2dbc.version>1.0.0.RELEASE</r2dbc.version>

<!-- JPA deps -->
<hibernate.version>6.6.3.Final</hibernate.version>
<hibernate.version>7.0.0.Beta1</hibernate.version>
<hibernate.validator.version>8.0.2.Final</hibernate.validator.version>
<eclipselink.version>4.0.4</eclipselink.version>
<jpa.version>3.1.0</jpa.version>
<eclipselink.version>5.0.0-B04</eclipselink.version>
<jpa.version>3.2.0</jpa.version>
<jakarta.annotation.version>3.0.0</jakarta.annotation.version>

<assertj.version>3.26.3</assertj.version>
<mvn.version>3.9.9</mvn.version>
<guava.version>33.3.1-jre</guava.version>
<codegen.version>0.6.8</codegen.version>
<mysema.lang.version>0.2.4</mysema.lang.version>
<byte-buddy.version>1.15.11</byte-buddy.version>
<slf4j.version>2.0.16</slf4j.version>
<surefire.version>3.5.2</surefire.version>
Expand Down Expand Up @@ -1055,7 +1057,7 @@
<configuration>
<exportDatatables>true</exportDatatables>
<activeRecipes>
<recipe>org.openrewrite.java.migrate.Java8toJava11</recipe>
<recipe>org.openrewrite.java.migrate.UpgradeToJava17</recipe>
</activeRecipes>
</configuration>
</execution>
Expand Down
2 changes: 1 addition & 1 deletion querydsl-docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-root</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<artifactId>querydsl-docs</artifactId>
Expand Down
6 changes: 1 addition & 5 deletions querydsl-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-root</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<artifactId>querydsl-examples</artifactId>
Expand All @@ -27,10 +27,6 @@
<module>querydsl-example-r2dbc-sql-codegen</module>
</modules>

<properties>
<main.java.version>17</main.java.version>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion querydsl-examples/querydsl-example-jpa-guice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-examples</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<artifactId>querydsl-example-jpa-guice</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion querydsl-examples/querydsl-example-jpa-quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-examples</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<artifactId>querydsl-example-jpa-quarkus</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion querydsl-examples/querydsl-example-jpa-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-examples</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<artifactId>querydsl-example-jpa-spring</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion querydsl-examples/querydsl-example-kotlin-codegen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-examples</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>
<artifactId>querydsl-example-kotlin-codegen</artifactId>
<name>Querydsl example - Kotlin Codegen</name>
Expand Down
2 changes: 1 addition & 1 deletion querydsl-examples/querydsl-example-kotlin-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-examples</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>
<artifactId>querydsl-example-kotlin</artifactId>
<name>Querydsl example - Kotlin JPA</name>
Expand Down
2 changes: 1 addition & 1 deletion querydsl-examples/querydsl-example-kotlin-mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-examples</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>
<artifactId>querydsl-example-kotlin-mongodb</artifactId>
<name>Querydsl example - Kotlin MongoDB</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-examples</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<artifactId>querydsl-example-r2dbc-sql-codegen</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion querydsl-examples/querydsl-example-sql-guice/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-examples</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<artifactId>querydsl-example-sql-guice</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion querydsl-examples/querydsl-example-sql-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-examples</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<artifactId>querydsl-example-sql-spring</artifactId>
Expand Down
7 changes: 4 additions & 3 deletions querydsl-libraries/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-root</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<artifactId>querydsl-libraries</artifactId>
Expand Down Expand Up @@ -98,8 +98,6 @@
<exclude>org.hibernate:hibernate-envers:*:*:compile</exclude>
<exclude>org.hibernate.validator:hibernate-validator:*:*:compile</exclude>
<exclude>org.eclipse.persistence:eclipselink:*:*:compile</exclude>
<exclude>org.datanucleus:javax.jdo:*:*:compile</exclude>
<exclude>org.springframework.roo:org.springframework.roo.annotations:*:*:compile</exclude>
<exclude>org.mongodb.morphia:morphia:*:*:compile</exclude>
<exclude>org.joda:joda-money:*:*:compile</exclude>
<exclude>org.batoo.jpa:batoo-jpa:*:*:compile</exclude>
Expand All @@ -112,6 +110,9 @@
<exclude>jakarta.xml.bind:jakarta.xml.bind-api:*:*:compile</exclude>
<!-- Ban any API's that were moved to jakarta -->
<exclude>javax.*:*:*:*:*</exclude>
<!-- Ban libraries that support was dropped -->
<exclude>org.datanucleus:javax.jdo:*:*:*</exclude>
<exclude>org.springframework.roo:org.springframework.roo.annotations:*:*:compile</exclude>
<!-- The following database drivers should be in test scope -->
<exclude>org.hsqldb:hsqldb:*:*:compile</exclude>
<exclude>com.h2database:h2:*:*:compile</exclude>
Expand Down
2 changes: 1 addition & 1 deletion querydsl-libraries/querydsl-collections/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-libraries</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<groupId>io.github.openfeign.querydsl</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
*/
package com.querydsl.collections;

import com.mysema.commons.lang.CloseableIterator;
import com.mysema.commons.lang.IteratorAdapter;
import com.querydsl.core.CloseableIterator;
import com.querydsl.core.FetchableQuery;
import com.querydsl.core.JoinType;
import com.querydsl.core.NonUniqueResultException;
Expand Down Expand Up @@ -180,7 +179,7 @@ public <P> Q leftJoin(MapExpression<?, P> target, Path<P> alias) {
public CloseableIterator<T> iterate() {
@SuppressWarnings("unchecked") // This is the built type
var projection = (Expression<T>) queryMixin.getMetadata().getProjection();
return new IteratorAdapter<>(fetch().iterator());
return CloseableIterator.of(fetch().iterator());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/
package com.querydsl.collections;

import com.mysema.commons.lang.IteratorAdapter;
import com.querydsl.codegen.utils.Evaluator;
import com.querydsl.core.CloseableIterator;
import com.querydsl.core.JoinExpression;
import com.querydsl.core.JoinType;
import com.querydsl.core.QueryMetadata;
Expand Down Expand Up @@ -163,10 +163,10 @@ private List evaluateSingleSource(
final List<Expression<?>> sources = Collections.<Expression<?>>singletonList(source);
final Iterable<?> iterable = iterables.values().iterator().next();
List<?> list;
if (iterable instanceof List) {
list = (List) iterable;
if (iterable instanceof List<?> list1) {
list = list1;
} else {
list = IteratorAdapter.asList(iterable.iterator());
list = CloseableIterator.asList(iterable.iterator());
}

// from & where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import com.querydsl.codegen.utils.Evaluator;
import com.querydsl.core.util.NullSafeComparableComparator;
import java.io.Serial;
import java.io.Serializable;
import java.util.Comparator;

Expand All @@ -29,7 +30,7 @@ public class MultiComparator<T> implements Comparator<T>, Serializable {
@SuppressWarnings("unchecked")
private static final Comparator<Object> naturalOrder = new NullSafeComparableComparator();

private static final long serialVersionUID = 1121416260773566299L;
@Serial private static final long serialVersionUID = 1121416260773566299L;

private final boolean[] asc;

Expand All @@ -45,8 +46,8 @@ public MultiComparator(Evaluator<Object[]> ev, boolean[] directions, boolean[] n

@Override
public int compare(T o1, T o2) {
if (o1 instanceof Object[]) {
return innerCompare(ev.evaluate((Object[]) o1), ev.evaluate((Object[]) o2));
if (o1 instanceof Object[] objects) {
return innerCompare(ev.evaluate(objects), ev.evaluate((Object[]) o2));
} else {
return innerCompare(ev.evaluate(o1), ev.evaluate(o2));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import static org.easymock.EasyMock.replay;
import static org.easymock.EasyMock.verify;

import com.mysema.commons.lang.CloseableIterator;
import com.querydsl.core.CloseableIterator;
import com.querydsl.core.FetchableQuery;
import com.querydsl.core.ResultTransformer;
import com.querydsl.core.annotations.QueryEntity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import static org.assertj.core.api.Assertions.assertThat;

import com.mysema.commons.lang.IteratorAdapter;
import com.querydsl.core.CloseableIterator;
import com.querydsl.core.QueryModifiers;
import com.querydsl.core.QueryResults;
import com.querydsl.core.types.dsl.Expressions;
Expand Down Expand Up @@ -55,7 +55,8 @@ private void assertResultSize(int total, int size, QueryModifiers modifiers) {
assertThat(createQuery(modifiers).fetchCount()).isEqualTo(total);

// via iterator
assertThat(IteratorAdapter.asList(createQuery(modifiers).select(var).iterate())).hasSize(size);
assertThat(CloseableIterator.asList(createQuery(modifiers).select(var).iterate()))
.hasSize(size);
}

private CollQuery<?> createQuery(QueryModifiers modifiers) {
Expand Down
7 changes: 1 addition & 6 deletions querydsl-libraries/querydsl-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.github.openfeign.querydsl</groupId>
<artifactId>querydsl-libraries</artifactId>
<version>6.11-SNAPSHOT</version>
<version>7.0-SNAPSHOT</version>
</parent>

<artifactId>querydsl-core</artifactId>
Expand All @@ -18,11 +18,6 @@
<artifactId>annotations</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.mysema.commons</groupId>
<artifactId>mysema-commons-lang</artifactId>
<version>${mysema.lang.version}</version>
</dependency>
<dependency>
<groupId>io.github.classgraph</groupId>
<artifactId>classgraph</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.querydsl.core.types.ExpressionUtils;
import com.querydsl.core.types.Predicate;
import com.querydsl.core.types.Visitor;
import java.io.Serial;
import java.util.Objects;
import org.jetbrains.annotations.Nullable;

Expand All @@ -38,7 +39,7 @@
*/
public final class BooleanBuilder implements Predicate, Cloneable {

private static final long serialVersionUID = -4129485177345542519L;
@Serial private static final long serialVersionUID = -4129485177345542519L;

@Nullable private Predicate predicate;

Expand Down Expand Up @@ -113,8 +114,8 @@ public BooleanBuilder clone() throws CloneNotSupportedException {
public boolean equals(Object o) {
if (o == this) {
return true;
} else if (o instanceof BooleanBuilder) {
return Objects.equals(((BooleanBuilder) o).getValue(), predicate);
} else if (o instanceof BooleanBuilder builder) {
return Objects.equals(builder.getValue(), predicate);
} else {
return false;
}
Expand Down
Loading
Loading