clean up package names
This commit is contained in:
1 parent
b8f924b578
commit
f8b4215233
11 files changed
+22
-22
No files matched your search
+1
-1
@@ -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.EntityID
|
||||||
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
|
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
|
||||||
+1
-1
@@ -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.EntityID
|
||||||
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
|
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
|
||||||
+2
-2
@@ -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.EntityID
|
||||||
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
|
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)
|
companion object : IntEntityClass<ArtistToBookDAO>(ArtistToBookTable)
|
||||||
|
|
||||||
var artist by ArtistDAO referencedOn ArtistToBookTable.artistId
|
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
|
var role by ArtistRoleDAO referencedOn ArtistToBookTable.role
|
||||||
}
|
}
|
||||||
+3
-3
@@ -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.EntityID
|
||||||
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
|
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
|
||||||
import org.jetbrains.exposed.v1.dao.IntEntity
|
import org.jetbrains.exposed.v1.dao.IntEntity
|
||||||
@@ -18,7 +18,7 @@ class BookDAO(id: EntityID<Int>) : IntEntity(id) {
|
|||||||
var title by BooksTable.title
|
var title by BooksTable.title
|
||||||
var seriesIndex by BooksTable.seriesIndex
|
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
|
val artists by ArtistToBookDAO referrersOn ArtistToBookTable.bookId
|
||||||
}
|
}
|
||||||
|
|
||||||
+1
-1
@@ -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.EntityID
|
||||||
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
|
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
|
||||||
+4
-4
@@ -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.books.model.Artist
|
||||||
import net.keinekekse.app.book.model.Book
|
import net.keinekekse.app.books.model.Book
|
||||||
import net.keinekekse.app.book.model.Series
|
import net.keinekekse.app.books.model.Series
|
||||||
|
|
||||||
interface BookRepository {
|
interface BookRepository {
|
||||||
suspend fun allBooks(): List<Book>
|
suspend fun allBooks(): List<Book>
|
||||||
+6
-6
@@ -1,10 +1,10 @@
|
|||||||
package net.keinekekse.app.server.testdb.model
|
package books.model
|
||||||
|
|
||||||
import net.keinekekse.app.book.model.Artist
|
import books.db.BookDAO
|
||||||
import net.keinekekse.app.book.model.Book
|
import books.db.daoToModel
|
||||||
import net.keinekekse.app.book.model.Series
|
import net.keinekekse.app.books.model.Artist
|
||||||
import net.keinekekse.app.server.testdb.db.BookDAO
|
import net.keinekekse.app.books.model.Book
|
||||||
import net.keinekekse.app.server.testdb.db.daoToModel
|
import net.keinekekse.app.books.model.Series
|
||||||
import org.jetbrains.exposed.v1.jdbc.transactions.suspendTransaction
|
import org.jetbrains.exposed.v1.jdbc.transactions.suspendTransaction
|
||||||
import org.koin.core.annotation.Single
|
import org.koin.core.annotation.Single
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package net.keinekekse.app.book.model
|
package net.keinekekse.app.books.model
|
||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package net.keinekekse.app.book.model
|
package net.keinekekse.app.books.model
|
||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package net.keinekekse.app.book.model
|
package net.keinekekse.app.books.model
|
||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package net.keinekekse.app.book.model
|
package net.keinekekse.app.books.model
|
||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
Reference in new issue
Block a user