diff --git a/scavenger-api/src/main/kotlin/com/navercorp/scavenger/controller/SnapshotController.kt b/scavenger-api/src/main/kotlin/com/navercorp/scavenger/controller/SnapshotController.kt index 19952a51..6d026141 100644 --- a/scavenger-api/src/main/kotlin/com/navercorp/scavenger/controller/SnapshotController.kt +++ b/scavenger-api/src/main/kotlin/com/navercorp/scavenger/controller/SnapshotController.kt @@ -98,9 +98,9 @@ class SnapshotController( } @GetMapping("/customers/{customerId}/snapshots/{snapshotId}/export") - fun exportSnapshot( + fun getAllExportSnapshotNode( @PathVariable customerId: Long, - @PathVariable snapshotId: Long, + @PathVariable snapshotId: Long ): List { return snapshotNodeService.getAllExportSnapshotNode(customerId, snapshotId) } 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 f6db8b1c..69823798 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 @@ -14,12 +14,12 @@ class SnapshotNodeDao( ) : JdbcDaoSupport(entityJdbcProvider), SnapshotNodeRepository by snapshotNodeRepository { private val sql: SnapshotNodeSql = super.sqls(::SnapshotNodeSql) - fun findAllExportSnapshotNode( + fun selectAllExportSnapshotNode( customerId: Long, snapshotId: Long ): List { return select( - sql.findAllExportSnapshotNode(), + sql.selectAllExportSnapshotNode(), 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 eb443360..f07b7330 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 findAllExportSnapshotNode(): String = + fun selectAllExportSnapshotNode(): String = """ SELECT snapshots.filterInvokedAtMillis, @@ -13,7 +13,7 @@ class SnapshotNodeSql : SqlGeneratorSupport() { snapshots.excludeAbstract, snapshot_nodes.parent, snapshot_nodes.signature, - snapshot_nodes. `type`, + snapshot_nodes.type, snapshot_nodes.usedCount, snapshot_nodes.unUsedCount, snapshot_nodes.lastInvokedAtMillis 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 bf6843d0..25a5c7cf 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 @@ -58,7 +58,7 @@ class SnapshotNodeService( customerId: Long, snapshotId: Long ): List { - return snapshotNodeDao.findAllExportSnapshotNode( + return snapshotNodeDao.selectAllExportSnapshotNode( customerId = customerId, snapshotId = snapshotId ).map {