Skip to content

Add delete(Predicate) to QuerydslJpaPredicateExecutor #3878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 94 commits into
base: 4.0.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
d28e2ed
Prepare next development iteration.
mp911de Nov 19, 2024
5a2cdb3
After release cleanups.
mp911de Nov 19, 2024
0fccd8d
Adopt to deprecation removals in Commons.
mp911de Nov 19, 2024
e6b3b53
Replace derived `CriteriaQuery` with String-based queries.
mp911de Aug 23, 2024
b88a205
Polishing.
christophstrobl Nov 5, 2024
8e3eb4f
Polishing.
mp911de Nov 18, 2024
57b190f
Revise PartTree query caching.
mp911de Nov 21, 2024
507dce6
Upgrade to JPA 3.2.
mp911de Nov 25, 2024
66afbfd
Upgrade to Hibernate 7.0 Beta1.
mp911de Nov 25, 2024
ab44631
Upgrade to Eclipselink 5.0.0-B05.
mp911de Nov 25, 2024
c3efdcf
Switch XML persistence & orm files to version 3.2
christophstrobl Dec 19, 2024
53243d7
Consider `NULLS` precedence using `Sort` for Criteria Queries.
mp911de Nov 25, 2024
4b30241
Add support for JPA 3.2 additions to JPQL.
gregturn Sep 1, 2023
ec75aae
Add support for JPA 3.2 additions to EQL.
christophstrobl Jun 21, 2024
8d8d901
Make sure sorting is rendered correctly for JPQL query using set oper…
christophstrobl Jun 28, 2024
e7fde06
Polishing.
mp911de Nov 27, 2024
2eaf93e
Fix EQL grammar to accept literals in constructor expressions.
mp911de Nov 27, 2024
9c8fc91
Cleanup QueryTokenStream methods.
mp911de Nov 27, 2024
e442ed8
Switch to `Query.getSingleResultOrNull()`.
mp911de Dec 9, 2024
2f64225
Move off deprecated TemporalType.TIMESTAMP
christophstrobl Dec 19, 2024
b4199e3
Polishing.
christophstrobl Dec 19, 2024
12452f0
Extend license header copyright years to 2025.
mp911de Jan 8, 2025
9420153
Remove commons-logging exclusion.
mp911de Jan 8, 2025
8d942bd
Explore refined Specification API.
mp911de Aug 13, 2024
6fac30a
Remove Specification.where method in favour of all().
christophstrobl Aug 19, 2024
a3e8518
Polishing.
mp911de Aug 20, 2024
b863511
Add Contract annotations.
mp911de Nov 7, 2024
fd878f3
Address review findings.
mp911de Jan 8, 2025
de7dd80
Polishing.
mp911de Jan 9, 2025
00034da
Merge `(Hql|Jpql|Eql)SpecificationTests` with their corresponding `Qu…
mp911de Jan 9, 2025
75079c5
Remove OpenJPA leftovers.
mp911de Jan 9, 2025
017257b
Upgrade to Hibernate 7.0 Beta3.
mp911de Jan 13, 2025
597f929
Polishing.
mp911de Jan 15, 2025
398b2ee
Document that fluent `findBy(…)` queries must return a result.
mp911de Jan 22, 2025
3987faa
Remove deprecated QuerydslJpaRepository.
mp911de Jan 22, 2025
6445941
Support custom countSpec in SimpleJpaRepository.findAll(…).
JoshuaChen Dec 28, 2024
56382cf
Polishing.
mp911de Jan 23, 2025
fbbb200
Prepare 4.0 M1 (2025.1.0).
christophstrobl Jan 24, 2025
10569fa
Release version 4.0 M1 (2025.1.0).
christophstrobl Jan 24, 2025
e5f5b5f
Prepare next development iteration.
christophstrobl Jan 24, 2025
eef3df1
After release cleanups.
christophstrobl Jan 24, 2025
7b8b35f
Add visitor to build an order expression from a JPQL order specificat…
gregturn Jan 27, 2025
020f4c2
Polishing.
mp911de Jan 28, 2025
2590e6b
Polishing.
quaff Apr 28, 2024
06ad2b0
Migrate to JSpecify annotations for nullability constraints.
christophstrobl Feb 17, 2025
c149e15
Add contract annotations to public API.
christophstrobl Feb 19, 2025
a6f8716
Polishing.
mp911de Feb 20, 2025
38f5c11
Introduce `QueryEnhancerSelector` to configure which `QueryEnhancerFa…
mp911de Jun 27, 2024
7068a8a
Refactoring.
christophstrobl Mar 4, 2025
8039dbd
Polishing.
mp911de Mar 17, 2025
b2f212d
Apply QueryRewriter to count queries as well.
mp911de Mar 19, 2025
ad76963
Upgrade to Hibernate 7.0.0.Beta5.
mp911de Apr 14, 2025
9f1dfa8
Upgrade to Eclipselink 5.0.0-B07.
mp911de Apr 14, 2025
540f3fb
Add support for AOT repositories.
christophstrobl Sep 23, 2024
5561fd1
Refactoring.
mp911de Mar 24, 2025
52e453c
Add query hint support.
mp911de Mar 26, 2025
e890fd7
Polishing.
mp911de Mar 26, 2025
f76ff3e
Add support for Value Expressions, Stream, Named and Modifying Queries.
mp911de Mar 26, 2025
c12bdb7
Simplify package structure.
mp911de Mar 28, 2025
1b242dd
Add support for Entity Graphs.
mp911de Apr 2, 2025
8ec2b60
Add support for projections.
mp911de Apr 4, 2025
36552dd
Document AOT repositories.
mp911de Mar 28, 2025
027a797
Add support for QueryRewriter.
mp911de Apr 4, 2025
cfe681a
Add AOT repository benchmarks.
mp911de Apr 4, 2025
f9cdca1
Add support for JSON repository metadata.
mp911de Apr 7, 2025
09a1eb6
Polishing.
mp911de Apr 9, 2025
2a8e9a5
Remove hardcoded repository fragment from test setup.
christophstrobl Apr 8, 2025
c239f73
Allow HQL HAVING without enforcing GROUP BY.
mp911de Apr 14, 2025
4b34ac0
Remove unnecessary parameter.
hgh1472 Apr 4, 2025
2ce55db
Fix typos in query method reference documentation.
yybmion Mar 25, 2025
1ca26d8
Polishing.
mp911de Apr 22, 2025
9d3ecbb
Polishing.
mp911de Apr 22, 2025
07d1d55
Prepare 4.0 M2 (2025.1.0).
mp911de Apr 22, 2025
4ddd4b8
Release version 4.0 M2 (2025.1.0).
mp911de Apr 22, 2025
5d8cf2c
Prepare next development iteration.
mp911de Apr 22, 2025
3827c3c
After release cleanups.
mp911de Apr 22, 2025
d6482ff
Use parameter names in derived JPQL queries.
mp911de Apr 24, 2025
9fab81a
Polishing.
mp911de Apr 24, 2025
c94259c
Fix handling of `null` predicate in `Specification.not()`.
SWQXDBA Apr 23, 2025
15b3241
Polishing.
mp911de May 5, 2025
2a4559c
Avoid DTO Constructor Expression rewriting for selection of nested pr…
mp911de May 5, 2025
7520e29
Removes `PlainSelect` casting in `JSqlParserQueryEnhancer`.
thmasker May 5, 2025
f02a21c
Polishing.
mp911de May 5, 2025
3503b33
Upgrade to Hibernate 7.0.0.CR1.
christophstrobl May 8, 2025
86c1d38
Provide `JpaRepositoryFragmentsContributor` in JPA Repository Factory…
mp911de May 7, 2025
beab651
Use `LocalVariableNameFactory` in repository contributor.
mp911de May 8, 2025
cf6dee9
Use isolated Hibernate `EntityManager` for AOT contribution.
mp911de May 8, 2025
bc54aec
Use dynamic copyright years in documentation, adopt to feature flags.
mp911de May 9, 2025
aaa1cac
Document OpenFeign Querydsl usage.
Lidoca Apr 25, 2025
ef7761c
Polishing.
mp911de May 9, 2025
db5a441
Fliter jakarta.persistence types from AOT Metamodel.
mp911de May 9, 2025
cdcac86
Use `SelectionQuery.getResultCount()` for count queries if possible.
mp911de Jan 31, 2025
67421ce
Prepare issue branch.
mp911de May 9, 2025
74cd50a
Add `delete(Predicate)` to `QuerydslJpaPredicateExecutor`.
mp911de May 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 1 addition & 45 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pipeline {

triggers {
pollSCM 'H/10 * * * *'
upstream(upstreamProjects: "spring-data-commons/main", threshold: hudson.model.Result.SUCCESS)
upstream(upstreamProjects: "spring-data-commons/4.0.x", threshold: hudson.model.Result.SUCCESS)
}

options {
Expand Down Expand Up @@ -58,50 +58,6 @@ pipeline {
}

parallel {
stage("test: hibernate 6.2 (LTS)") {
agent {
label 'data'
}
options { timeout(time: 30, unit: 'MINUTES')}
environment {
ARTIFACTORY = credentials("${p['artifactory.credentials']}")
DEVELOCITY_ACCESS_KEY = credentials("${p['develocity.access-key']}")
TESTCONTAINERS_IMAGE_SUBSTITUTOR = 'org.springframework.data.jpa.support.ProxyImageNameSubstitutor'
}
steps {
script {
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) {
docker.image(p['docker.java.next.image']).inside(p['docker.java.inside.docker']) {
sh "PROFILE=all-dbs,hibernate-62 " +
"JENKINS_USER_NAME=${p['jenkins.user.name']} " +
"ci/test.sh"
}
}
}
}
}
stage("test: baseline (hibernate 6.6 snapshots)") {
agent {
label 'data'
}
options { timeout(time: 30, unit: 'MINUTES')}
environment {
ARTIFACTORY = credentials("${p['artifactory.credentials']}")
DEVELOCITY_ACCESS_KEY = credentials("${p['develocity.access-key']}")
TESTCONTAINERS_IMAGE_SUBSTITUTOR = 'org.springframework.data.jpa.support.ProxyImageNameSubstitutor'
}
steps {
script {
docker.withRegistry(p['docker.proxy.registry'], p['docker.proxy.credentials']) {
docker.image(p['docker.java.next.image']).inside(p['docker.java.inside.docker']) {
sh "PROFILE=all-dbs,hibernate-66-snapshots " +
"JENKINS_USER_NAME=${p['jenkins.user.name']} " +
"ci/test.sh"
}
}
}
}
}
stage("test: java.next (next)") {
agent {
label 'data'
Expand Down
35 changes: 30 additions & 5 deletions org/antlr/v4/tool/templates/codegen/Java/Java.stg
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,18 @@ ParserFile(file, parser, namedActions, contextSuperClass) ::= <<
package <file.genPackage>;
<endif>
<namedActions.header>

import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import org.jspecify.annotations.NullUnmarked;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
import jakarta.annotation.Generated;


<parser>
>>
Expand All @@ -67,11 +71,15 @@ package <file.genPackage>;
<endif>
<header>
import org.antlr.v4.runtime.tree.ParseTreeListener;
import org.jspecify.annotations.NullUnmarked;
import jakarta.annotation.Generated;

/**
* This interface defines a complete listener for a parse tree produced by
* {@link <file.parserName>}.
*/
@NullUnmarked
@Generated("<file.grammarName>Listener")
interface <file.grammarName>Listener extends ParseTreeListener {
<file.listenerNames:{lname |
/**
Expand Down Expand Up @@ -103,17 +111,20 @@ BaseListenerFile(file, header, namedActions) ::= <<
package <file.genPackage>;
<endif>
<header>

import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.TerminalNode;
import org.jspecify.annotations.NullUnmarked;
import jakarta.annotation.Generated;

/**
* This class provides an empty implementation of {@link <file.grammarName>Listener},
* which can be extended to create a listener which only needs to handle a subset
* of the available methods.
*/
@SuppressWarnings("CheckReturnValue")
@NullUnmarked
@Generated("<file.grammarName>BaseListener")
@SuppressWarnings({ "CheckReturnValue", "NullAway" })
class <file.grammarName>BaseListener implements <file.grammarName>Listener {
<file.listenerNames:{lname |
/**
Expand Down Expand Up @@ -163,6 +174,8 @@ package <file.genPackage>;
<endif>
<header>
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
import org.jspecify.annotations.NullUnmarked;
import jakarta.annotation.Generated;

/**
* This interface defines a complete generic visitor for a parse tree produced
Expand All @@ -171,6 +184,8 @@ import org.antlr.v4.runtime.tree.ParseTreeVisitor;
* @param \<T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
@NullUnmarked
@Generated("<file.grammarName>Visitor")
interface <file.grammarName>Visitor\<T> extends ParseTreeVisitor\<T> {
<file.visitorNames:{lname |
/**
Expand All @@ -194,6 +209,8 @@ package <file.genPackage>;
<endif>
<header>
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
import org.jspecify.annotations.NullUnmarked;
import jakarta.annotation.Generated;

/**
* This class provides an empty implementation of {@link <file.grammarName>Visitor},
Expand All @@ -203,7 +220,9 @@ import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
* @param \<T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
@SuppressWarnings("CheckReturnValue")
@NullUnmarked
@Generated("<file.grammarName>BaseVisitor")
@SuppressWarnings({ "CheckReturnValue", "NullAway" })
class <file.grammarName>BaseVisitor\<T> extends AbstractParseTreeVisitor\<T> implements <file.grammarName>Visitor\<T> {
<file.visitorNames:{lname |
/**
Expand All @@ -225,7 +244,9 @@ Parser(parser, funcs, atn, sempredFuncs, superClass) ::= <<
>>

Parser_(parser, funcs, atn, sempredFuncs, ctor, superClass) ::= <<
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue"})
@NullUnmarked
@Generated("<parser.name>")
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "NullAway"})
class <parser.name> extends <superClass; null="Parser"> {
// Customization: Suppress version check
// static { RuntimeMetaData.checkVersion("<file.ANTLRVersion>", RuntimeMetaData.VERSION); }
Expand Down Expand Up @@ -895,12 +916,16 @@ import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.misc.*;
import org.jspecify.annotations.NullUnmarked;
import jakarta.annotation.Generated;

<lexer>
>>

Lexer(lexer, atn, actionFuncs, sempredFuncs, superClass) ::= <<
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue"})
@NullUnmarked
@Generated("<lexer.name>")
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast", "CheckReturnValue", "NullAway"})
class <lexer.name> extends <superClass; null="Lexer"> {
// Customization: Suppress version check
// static { RuntimeMetaData.checkVersion("<lexerFile.ANTLRVersion>", RuntimeMetaData.VERSION); }
Expand Down
Loading