Skip to content

Commit

Permalink
corrected the position of the case class 'file'
Browse files Browse the repository at this point in the history
  • Loading branch information
acanakoglu committed Jul 10, 2018
1 parent eda82f5 commit 9e45c8a
Showing 1 changed file with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@ package it.polimi.genomics.importer.FileDatabase
import org.joda.time.DateTime
import org.slf4j.{Logger, LoggerFactory}
import slick.dbio.Effect.Write
import slick.driver.H2Driver.api._
import slick.driver.H2Driver.backend.DatabaseDef
import slick.jdbc.H2Profile.api._
import slick.jdbc.H2Profile.backend.DatabaseDef
import slick.jdbc.meta.MTable
import slick.sql.FixedSqlAction

import scala.concurrent.Await
import scala.concurrent.duration.Duration


/**
* File table case class
*
*/
case class File(id: Option[Int], datasetId: Int, url: String, name: String, stage: String, status: String, size: String, lastUpdate: String, hash: String,
originSize: String, originLastUpdate: String, dateProcessed: String, copyNumber: Int)

/**
* Created by Nacho on 11/11/16.
* dbContainer is the interface between the h2 database and the file logger.
Expand Down Expand Up @@ -39,10 +47,10 @@ import scala.concurrent.duration.Duration
* 7- After you use the information in the log (as example, when the transformer uses info generated by downloader)
* log it by using the method markAsProcessed().
*/
case class File(id: Option[Int], datasetId: Int, url: String, name: String, stage: String, status: String, size: String, lastUpdate: String, hash: String,
originSize: String, originLastUpdate: String, dateProcessed: String, copyNumber: Int)

case class dbContainer() {


val logger: Logger = LoggerFactory.getLogger(this.getClass)
//------------------------------------------------testing space-------------------------------------------------------
//here print of run parameters and all the xmlConfigurationFile could be done.
Expand Down Expand Up @@ -918,7 +926,6 @@ case class dbContainer() {
val datasets = TableQuery[Datasets]



//----------------------------------------- Definition of the FILES table---------------------------------------------
/**
* FILES TABLE:
Expand Down

0 comments on commit 9e45c8a

Please sign in to comment.