Skip to content
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

Add support for Querydsl [DATACMNS-1849] #529

Open
spring-projects-issues opened this issue Dec 30, 2020 · 1 comment
Open

Add support for Querydsl [DATACMNS-1849] #529

spring-projects-issues opened this issue Dec 30, 2020 · 1 comment
Assignees
Labels
status: blocked An issue that's blocked on an external project change type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

iron2414 opened DATACMNS-1849 and commented

Observed vs. expected behavior

When I'm trying to create a User repository, which is extending ReactiveCrudRepository and ReactiveQuerydslPredicateExecutor, then it says

org.springframework.data.mapping.PropertyReferenceException: No property findAll found for type User!. 

If I remove the ReactiveQuerydslPredicateExecutor extension, then everything is working fine.

Steps to reproduce

User entity:

 

@Table("user")
@AllArgsConstructor
@NoArgsConstructor
@Data
@QueryEntity
public class User {

    @Id
    Long id;

    String name;

    String email;
}

 

 

User repository:

@Repository
public interface UserRepository extends ReactiveSortingPagingRepository<User, Long>, ReactiveQuerydslPredicateExecutor<User> {
}

pom.xml

 

<dependencies>
       <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-webflux</artifactId>
           <version>2.3.7.RELEASE</version>
           <exclusions>
               <exclusion>
                   <artifactId>slf4j-api</artifactId>
                   <groupId>org.slf4j</groupId>
               </exclusion>
           </exclusions>
       </dependency>
       <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-data-r2dbc</artifactId>
           <version>2.3.7.RELEASE</version>
           <exclusions>
               <exclusion>
                   <artifactId>reactor-core</artifactId>
                   <groupId>io.projectreactor</groupId>
               </exclusion>
           </exclusions>
       </dependency>
       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-jdbc</artifactId>
           <version>5.3.2</version>
           <exclusions>
               <exclusion>
                   <artifactId>spring-beans</artifactId>
                   <groupId>org.springframework</groupId>
               </exclusion>
               <exclusion>
                   <artifactId>spring-tx</artifactId>
                   <groupId>org.springframework</groupId>
               </exclusion>
               <exclusion>
                   <artifactId>spring-core</artifactId>
                   <groupId>org.springframework</groupId>
               </exclusion>
           </exclusions>
       </dependency>
       <dependency>
           <groupId>com.github.jasync-sql</groupId>
           <artifactId>jasync-r2dbc-mysql</artifactId>
           <version>1.1.4</version>
           <exclusions>
               <exclusion>
                   <artifactId>r2dbc-spi</artifactId>
                   <groupId>io.r2dbc</groupId>
               </exclusion>
               <exclusion>
                   <artifactId>reactor-core</artifactId>
                   <groupId>io.projectreactor</groupId>
               </exclusion>
               <exclusion>
                   <artifactId>kotlin-stdlib</artifactId>
                   <groupId>org.jetbrains.kotlin</groupId>
               </exclusion>
               <exclusion>
                   <artifactId>kotlin-stdlib-common</artifactId>
                   <groupId>org.jetbrains.kotlin</groupId>
               </exclusion>
               <exclusion>
                   <artifactId>netty-handler</artifactId>
                   <groupId>io.netty</groupId>
               </exclusion>
               <exclusion>
                   <artifactId>netty-transport</artifactId>
                   <groupId>io.netty</groupId>
               </exclusion>
               <exclusion>
                   <artifactId>slf4j-api</artifactId>
                   <groupId>org.slf4j</groupId>
               </exclusion>
           </exclusions>
       </dependency>
       <dependency>
           <groupId>org.projectlombok</groupId>
           <artifactId>lombok</artifactId>
           <version>1.18.16</version>
           <scope>provided</scope>
       </dependency>
       <dependency>
           <groupId>com.querydsl</groupId>
           <artifactId>querydsl-sql-spring</artifactId>
           <version>4.4.0</version>
       </dependency>
       <dependency>
           <groupId>org.jetbrains.kotlin</groupId>
           <artifactId>kotlin-reflect</artifactId>
           <version>1.1.0</version>
       </dependency>
   </dependencies>

 

application properties for database connection (xampp)

 

spring.r2dbc.url=r2dbc:mysql://127.0.0.1:3306/fitman
spring.r2dbc.username=root
spring.r2dbc.password=

Environment

Querydsl version:

  • querydsl-core:4.4.0
  • querydsl-sql:4.4.0
  • querydsl-sql-spring:4.4.0

Database: Mysql, connecting with r2dbc.

JDK: 1.8.211


Affects: 2.3.6 (Neumann SR6)

@mp911de mp911de changed the title Spring webflux r2dbc ReactiveQuerydslPredicateExecutor not working [DATACMNS-1849] Add support for Querydsl [DATACMNS-1849] Jan 26, 2021
@mp911de mp911de transferred this issue from spring-projects/spring-data-commons Jan 26, 2021
@mp911de
Copy link
Member

mp911de commented Jan 26, 2021

There's no support for Querydsl for R2DBC yet. Depends on querydsl/querydsl#2468.

@mp911de mp911de added status: blocked An issue that's blocked on an external project change type: enhancement A general enhancement labels Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: blocked An issue that's blocked on an external project change type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants