<Use Jetbrains Exposed DAO entity multiple times i...
# stackoverflow
u
Use Jetbrains Exposed DAO entity multiple times in Kotlin I'm trying to access an exposed entity from my H2 database multiple times. This is my code: val room = getRoom(event.roomId) println(room.roomId) println(room.data) where getRoom is the following function: fun getRoom(roomId: RoomId): Room { return transaction { Rooms.insertIgnore { it[id] = roomId.full } return@transaction Room[roomId.full] } } and this is my Room Entity class Room(pRoomId: EntityID) : Entity(pRoomId) { companion object :...