Hello All,
I am trying to evaluate "Slick" for my Scala Project to connect to "PostgreSQl" db backend. I am using the following version of Slick in my "Gradle Configuration":
compile group: 'com.typesafe.slick', name: 'slick_2.10', version: '3.1.0'.
compile group: 'postgresql', name: 'postgresql', version: '9.1-901-1.jdbc4'
compile group: 'org.slf4j', name: 'slf4j-nop', version: '1.6.4'
But while defining the schema table and mapped class, as given in the "Slick-3.1.3" documentation manual , I am getting compilation errors in my "Eclipse" and gradle.
I am using the following example from documentation:
class Suppliers(tag: Tag) extends Table[(Int, String, String, String, String, String)](tag, "SUPPLIERS") {
def id = column[Int]("SUP_ID", O.PrimaryKey) // This is the primary key column
def name = column[String]("SUP_NAME")
def street = column[String]("STREET")
def city = column[String]("CITY")
def state = column[String]("STATE")
def zip = column[String]("ZIP")
// Every table needs a * projection with the same type as the table's type parameter
def * = (id, name, street, city, state, zip)
}
I am getting following compilation errors:
1. error: slick.model.Table does not take type parameters
2. error: too many arguments for constructor Object: ()Object
3. error: not found: value column
Any help will be appreciated.