diff --git a/scavenger-api/src/main/kotlin/com/navercorp/scavenger/repository/SnapshotNodeDao.kt b/scavenger-api/src/main/kotlin/com/navercorp/scavenger/repository/SnapshotNodeDao.kt index d3fb0ec..9ce4a95 100644 --- a/scavenger-api/src/main/kotlin/com/navercorp/scavenger/repository/SnapshotNodeDao.kt +++ b/scavenger-api/src/main/kotlin/com/navercorp/scavenger/repository/SnapshotNodeDao.kt @@ -15,14 +15,14 @@ class SnapshotNodeDao( ) : JdbcDaoSupport(entityJdbcProvider), SingleValueSelectTrait, SnapshotNodeRepository by snapshotNodeRepository { private val sql: SnapshotNodeSql = super.sqls(::SnapshotNodeSql) - fun selectAllExportSnapshotNode( + fun findAllExportSnapshotNode( customerId: Long, snapshotId: Long, offset: Long, size: Long ): List { return select( - sql.selectAllExportSnapshotNode(), + sql.findAllExportSnapshotNode(), mapParameterSource() .addValue("customerId", customerId) .addValue("snapshotId", snapshotId) diff --git a/scavenger-api/src/main/kotlin/com/navercorp/scavenger/repository/sql/SnapshotNodeSql.kt b/scavenger-api/src/main/kotlin/com/navercorp/scavenger/repository/sql/SnapshotNodeSql.kt index 1d27990..5456599 100644 --- a/scavenger-api/src/main/kotlin/com/navercorp/scavenger/repository/sql/SnapshotNodeSql.kt +++ b/scavenger-api/src/main/kotlin/com/navercorp/scavenger/repository/sql/SnapshotNodeSql.kt @@ -4,7 +4,7 @@ import com.navercorp.spring.data.jdbc.plus.sql.support.SqlGeneratorSupport class SnapshotNodeSql : SqlGeneratorSupport() { - fun selectAllExportSnapshotNode(): String = + fun findAllExportSnapshotNode(): String = """ SELECT snapshots.filterInvokedAtMillis, diff --git a/scavenger-api/src/main/kotlin/com/navercorp/scavenger/service/SnapshotNodeService.kt b/scavenger-api/src/main/kotlin/com/navercorp/scavenger/service/SnapshotNodeService.kt index a7e1505..8878ab0 100644 --- a/scavenger-api/src/main/kotlin/com/navercorp/scavenger/service/SnapshotNodeService.kt +++ b/scavenger-api/src/main/kotlin/com/navercorp/scavenger/service/SnapshotNodeService.kt @@ -59,7 +59,7 @@ class SnapshotNodeService( snapshotId: Long, page: Long ): List { - return snapshotNodeDao.selectAllExportSnapshotNode( + return snapshotNodeDao.findAllExportSnapshotNode( customerId = customerId, snapshotId = snapshotId, offset = page * EXPORT_SNAPSHOT_NODE_CHUNK_SIZE,