Skip to content

Commit f242fe1

Browse files
committed
Fix tests
1 parent 835f954 commit f242fe1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc-examples/jdbc-example-java/src/test/java/example/StaticMetamodelTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void testMetamodel() {
5959
String q = criteriaQuery.buildQuery(AnnotationMetadata.EMPTY_METADATA, new SqlQueryBuilder2()).getQuery();
6060

6161
Assertions.assertEquals("""
62-
SELECT client_."id",client_."name",client_."main_category_id",client_categories_collection_."id" AS categories_collection_id,client_categories_collection_."name" AS categories_collection_name FROM "client" client_ LEFT JOIN "client_category" client_categories_collection_client_category_ ON client_."id"=client_categories_collection_client_category_."client_id" LEFT JOIN "category" client_categories_collection_ ON client_categories_collection_client_category_."category_id"=client_categories_collection_."id\"""",
62+
SELECT client_."id",client_."name",client_categories_collection_."id" AS categories_collection_id,client_categories_collection_."name" AS categories_collection_name FROM "client" client_ LEFT JOIN "client_category" client_categories_collection_client_category_ ON client_."id"=client_categories_collection_client_category_."client_id" LEFT JOIN "category" client_categories_collection_ ON client_categories_collection_client_category_."category_id"=client_categories_collection_."id\"""",
6363
q);
6464
}
6565
}

doc-examples/r2dbc-example-kotlin/src/main/kotlin/example/ParentSuspendRepository.kt

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface ParentSuspendRepository : GenericRepository<Parent, Int> {
1919
suspend fun update(@NonNull entity: Parent): Parent
2020

2121
@Transactional(Transactional.TxType.MANDATORY)
22+
@Join(value = "children", type = Join.Type.LEFT_FETCH)
2223
suspend fun queryById(id: Int): Optional<Parent>
2324

2425
suspend fun count(): Long

0 commit comments

Comments
 (0)