From 4d5cc4c8502396546dd82d3bcce58ae91e3feb8b Mon Sep 17 00:00:00 2001 From: Brutus5000 Date: Mon, 30 Oct 2023 22:16:50 +0100 Subject: [PATCH] Consistent naming on the entities --- .../persistence/{CoturnServer.kt => CoturnServerEntity.kt} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/main/kotlin/com/faforever/icebreaker/persistence/{CoturnServer.kt => CoturnServerEntity.kt} (88%) diff --git a/src/main/kotlin/com/faforever/icebreaker/persistence/CoturnServer.kt b/src/main/kotlin/com/faforever/icebreaker/persistence/CoturnServerEntity.kt similarity index 88% rename from src/main/kotlin/com/faforever/icebreaker/persistence/CoturnServer.kt rename to src/main/kotlin/com/faforever/icebreaker/persistence/CoturnServerEntity.kt index f173e2f..66980ed 100644 --- a/src/main/kotlin/com/faforever/icebreaker/persistence/CoturnServer.kt +++ b/src/main/kotlin/com/faforever/icebreaker/persistence/CoturnServerEntity.kt @@ -11,7 +11,7 @@ import jakarta.persistence.Table @Entity @Table(name = "coturn_servers") -data class CoturnServer( +data class CoturnServerEntity( @Id @GeneratedValue(strategy = GenerationType.IDENTITY) val id: Long, @@ -31,6 +31,6 @@ data class CoturnServer( ) : PanacheEntityBase @Singleton -class CoturnServerRepository : PanacheRepository { +class CoturnServerRepository : PanacheRepository { fun findActive() = find("active").list() }