File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
main/java/org/mybatis/dynamic/sql
test/kotlin/examples/kotlin/spring/canonical Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * Copyright 2016-2019 the original author or authors.
2
+ * Copyright 2016-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -82,7 +82,7 @@ public String tableNameAtRuntime() {
82
82
return nameSupplier .get ();
83
83
}
84
84
85
- public < T > SqlColumn < T > allColumns () {
85
+ public BasicColumn allColumns () {
86
86
return SqlColumn .of ("*" , this ); //$NON-NLS-1$
87
87
}
88
88
Original file line number Diff line number Diff line change @@ -314,6 +314,17 @@ class CanonicalSpringKotlinTemplateDirectTest {
314
314
assertThat(rows).hasSize(6 )
315
315
}
316
316
317
+ @Test
318
+ fun testSelectAllWithSelectStar () {
319
+ val rows = template.select(Person .allColumns())
320
+ .from(Person ) {
321
+ allRows()
322
+ orderBy(id)
323
+ }.withRowMapper(personRowMapper)
324
+
325
+ assertThat(rows).hasSize(6 )
326
+ }
327
+
317
328
@Test
318
329
fun testSelect () {
319
330
val rows = template.select(
You can’t perform that action at this time.
0 commit comments