1,988 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
52
views
GroupBy.list() Behavior: Unexpected Grouping Results with Unsorted Data
I'm using QueryDSL's GroupBy.list() for in-memory collection processing, but I've noticed unexpected behavior with grouping. According to my test, when I feed unsorted data to transform(groupBy(...)....
2
votes
1
answer
75
views
Issue using subquery .limit() with OpenFeign/QueryDSL 7.1 (Spring Boot 3.4.4) — LIMIT ignored in generated SQL
I’m using OpenFeign/QueryDSL 7.1 with Spring Boot 3.4.4, which should include the fix from this pull request:
Add support for subquery modifiers (LIMIT/OFFSET) in Hibernate by @DongGunYoon in #1304
...
0
votes
1
answer
92
views
Elasticsearch bucket_path keep getting Validation Failed: 1: No aggregation found for path
POST huawei-monitor-logs-*/_search
{
"size": 0,
"query": {
"term": {
"event.original": "down"
}
},
"aggs": {
"...
0
votes
0
answers
24
views
querydsl-apt does not generate parent module's Q classes?
I have two module, say, A and B.
I module A, there is no Q classes but only mapped super classes.
// Module A
@jakarta.persistence.MappedSuperclass
public abstract class MyModule_A_Entity {
}
The ...
0
votes
1
answer
37
views
QueryDSL transformed to SQL: second constant variable becomes $p and causes an error
I am using SpringBoot and QueryDSL. QueryDSL is used for performance reasons.
I wrote QueryDSL like this:
Double aSumAll = select(tableA.sumColumn.sum())
.from(tableA)
....
4
votes
1
answer
205
views
Fail on generating the querydsl metamodel with java 21 and querydsl 5.1.0 with a @MappedSuperclass that have a validation annotation
You can download this sample here
I use this stack:
java 21 (OpenJDK Runtime Environment build 21.0.8+9)
maven 3.9.10
jakarta-persistence 3.1.0
jakarta-annotation 2.1.1
querydsl.version 5.1.0 (...
0
votes
1
answer
111
views
Does Springdoc OpenAPI v2 support doc generation for QueryDSL predicate paths as query parameters?
Spring Data REST allows for simple boilerplate creation of CRUD REST controllers. When integrated with QueryDSL, HTTP query parameters can be bound to QueryDSL paths to filter the collection resource. ...
2
votes
2
answers
282
views
After migrating to hibernate 6 and spring boot 3, he .transform() not work
I migrate my project to hibernate 6.5.3.Final + querydsl:5.1.0 and I can't do transform on querydsl
I have class:
public class Test{
private final EntityPath<SomeEntity> path;
private ...
0
votes
0
answers
90
views
QueryDsl gradle Attempt to recreate a file for type
I have the following gradle configuration:
plugins {
id 'java'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation('org....
0
votes
0
answers
15
views
How can I get the value of the instance field form a QClass?
When generate Qclasses, they look like,
@Generated("com.querydsl.codegen.DefaultEntitySerializer")
public class QWhatever extends EntityPathBase<Whatever> {
// ...
public ...
0
votes
0
answers
38
views
Error When Converting Enum with Custom Value Stored in Database (Not Ordinal or Name)
I've updated my project from Hibernate 5.5 to 6.6.5.Final, and now I'm facing an error during an enum conversion. Basically, I store the custom enum value in the database, but Hibernate and QueryDSL ...
0
votes
0
answers
85
views
QueryDSL: QClass is generated but Hibernate cannot resolve target entity
Problem
I'm working with Spring Boot 3.2.3 and QueryDSL 5.0.0 in IntelliJ IDEA (latest version). I have successfully generated a QueryDSL QClass, but when I try to use it, I get the following error:
{ ...
-1
votes
2
answers
120
views
Cannot import import com.querydsl.jpa.impl.JPAQuery;
I am trying to use QueryDSL.
I followed Querydsl Reference Guide but can't use JPAQuery anyway.
I tried import it with import com.querydsl.jpa.impl.JPAQuery; but it didn't work.
Here is what i added ...
0
votes
0
answers
48
views
OpenFeign QueryDSL QClass.property Stuck At First Line
I don't really know how to explain the problem accordingly but its being stuck at the first line, not every time though I don't even change anything in the code but when I restart the application ...
0
votes
0
answers
95
views
Problem with combination of Lombok and QueryDsl - entity attributes are not generated
I have a problem, that some attributes are not being generated within QType class.
If I have this class:
@Entity
@Getter
@Setter
@SuperBuilder
@NoArgsConstructor
@FieldNameConstants
@ToString(
...