-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed test, probably broke other tests
- Loading branch information
Showing
6 changed files
with
54 additions
and
64 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...ip-spring-data-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/Main.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.infobip.spring.data.r2dbc.mysql; | ||
|
||
import com.infobip.spring.data.r2dbc.EnableQuerydslR2dbcRepositories; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.builder.SpringApplicationBuilder; | ||
|
||
@EnableQuerydslR2dbcRepositories | ||
@SpringBootApplication | ||
public class Main { | ||
|
||
public static void main(String[] args) { | ||
|
||
new SpringApplicationBuilder(Main.class).run(args); | ||
} | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
...-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/MySqlConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.infobip.spring.data.r2dbc.mysql; | ||
|
||
import com.infobip.spring.data.r2dbc.TestConfiguration; | ||
import org.springframework.context.annotation.*; | ||
|
||
@Import(TestConfiguration.class) | ||
@Profile("mysql") | ||
@Configuration | ||
public class MySqlConfiguration { | ||
} |
37 changes: 4 additions & 33 deletions
37
...sl/src/test/java/com/infobip/spring/data/r2dbc/mysql/MysqlNamedParametersSupportTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...-spring-data-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/Person.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.infobip.spring.data.r2dbc.mysql; | ||
|
||
import lombok.With; | ||
import org.springframework.data.annotation.Id; | ||
import org.springframework.data.relational.core.mapping.Table; | ||
|
||
@Table("person") | ||
public record Person( | ||
@With | ||
@Id | ||
Long id, | ||
|
||
String firstName, | ||
|
||
String lastName | ||
) { | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
...ta-r2dbc-querydsl/src/test/java/com/infobip/spring/data/r2dbc/mysql/PersonRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.infobip.spring.data.r2dbc.mysql; | ||
|
||
import com.infobip.spring.data.r2dbc.QuerydslR2dbcRepository; | ||
|
||
public interface PersonRepository extends QuerydslR2dbcRepository<Person, Long> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters