将案例类实例与Squeryl进行比较?

时间:2017-03-27 21:53:18

标签: scala squeryl

如何正确评估case class中的squeryl个实例?

$cat build.sbt 
scalaVersion := "2.11.8"

libraryDependencies += "org.squeryl" %% "squeryl" % "0.9.5-7"

$sbt console

scala> case class Foo(x: Int) extends org.squeryl.customtypes.IntField(x)
defined class Foo

scala> Foo(42) == Foo(42)
res0: Boolean = false

0 个答案:

没有答案