こんにちは、単純な滑らかなテーブルを更新して実行し、問い合わせたいと思います。
import scala.slick.driver.PostgresDriver.simple._
import scala.slick.lifted.TableQuery
class Coffees(tag: Tag) extends Table[(String, Double)](tag, "COFFEES") {
def name = column[String]("COF_NAME", O.PrimaryKey)
def price = column[Double]("PRICE")
def * = (name, price)
}
val coffees = TableQuery[Coffees];
エラーは次のとおりです。
[error] C:\testprojects\slickplay\app\model\Coffee.scala:11: expected class or o bject definition
[error] val coffees = TableQuery[Coffees];
TableQuery[Coffees] がオブジェクトを返さない???修正方法を教えてください。