clean up package names

This commit is contained in:
Hartmut Bauer committed 2026-02-10 18:00:01 +01:00
1 parent b8f924b578
commit f8b4215233
11 files changed
+22 -22

No files matched your search

@@ -1,4 +1,4 @@
package net.keinekekse.app.server.testdb.db
package books.db
import org.jetbrains.exposed.v1.core.dao.id.EntityID
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
@@ -1,4 +1,4 @@
package net.keinekekse.app.server.testdb.db
package books.db
import org.jetbrains.exposed.v1.core.dao.id.EntityID
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
@@ -1,4 +1,4 @@
package net.keinekekse.app.server.testdb.db
package books.db
import org.jetbrains.exposed.v1.core.dao.id.EntityID
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
@@ -15,6 +15,6 @@ class ArtistToBookDAO(id: EntityID<Int>) : IntEntity(id) {
companion object : IntEntityClass<ArtistToBookDAO>(ArtistToBookTable)
var artist by ArtistDAO referencedOn ArtistToBookTable.artistId
var book by BookDAO referencedOn ArtistToBookTable.bookId
var book by BookDAO.Companion referencedOn ArtistToBookTable.bookId
var role by ArtistRoleDAO referencedOn ArtistToBookTable.role
}
@@ -1,6 +1,6 @@
package net.keinekekse.app.server.testdb.db
package books.db
import net.keinekekse.app.book.model.*
import net.keinekekse.app.books.model.*
import org.jetbrains.exposed.v1.core.dao.id.EntityID
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
import org.jetbrains.exposed.v1.dao.IntEntity
@@ -18,7 +18,7 @@ class BookDAO(id: EntityID<Int>) : IntEntity(id) {
var title by BooksTable.title
var seriesIndex by BooksTable.seriesIndex
var series by SeriesDAO optionalReferencedOn BooksTable.series
var series by SeriesDAO.Companion optionalReferencedOn BooksTable.series
val artists by ArtistToBookDAO referrersOn ArtistToBookTable.bookId
}
@@ -1,4 +1,4 @@
package net.keinekekse.app.server.testdb.db
package books.db
import org.jetbrains.exposed.v1.core.dao.id.EntityID
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
@@ -1,8 +1,8 @@
package net.keinekekse.app.server.testdb.model
package books.model
import net.keinekekse.app.book.model.Artist
import net.keinekekse.app.book.model.Book
import net.keinekekse.app.book.model.Series
import net.keinekekse.app.books.model.Artist
import net.keinekekse.app.books.model.Book
import net.keinekekse.app.books.model.Series
interface BookRepository {
suspend fun allBooks(): List<Book>
@@ -1,10 +1,10 @@
package net.keinekekse.app.server.testdb.model
package books.model
import net.keinekekse.app.book.model.Artist
import net.keinekekse.app.book.model.Book
import net.keinekekse.app.book.model.Series
import net.keinekekse.app.server.testdb.db.BookDAO
import net.keinekekse.app.server.testdb.db.daoToModel
import books.db.BookDAO
import books.db.daoToModel
import net.keinekekse.app.books.model.Artist
import net.keinekekse.app.books.model.Book
import net.keinekekse.app.books.model.Series
import org.jetbrains.exposed.v1.jdbc.transactions.suspendTransaction
import org.koin.core.annotation.Single
@@ -1,4 +1,4 @@
package net.keinekekse.app.book.model
package net.keinekekse.app.books.model
import kotlinx.serialization.Serializable
@@ -1,4 +1,4 @@
package net.keinekekse.app.book.model
package net.keinekekse.app.books.model
import kotlinx.serialization.Serializable
@@ -1,4 +1,4 @@
package net.keinekekse.app.book.model
package net.keinekekse.app.books.model
import kotlinx.serialization.Serializable
@@ -1,4 +1,4 @@
package net.keinekekse.app.book.model
package net.keinekekse.app.books.model
import kotlinx.serialization.Serializable