Hey guys,
Im getting an odd exception when trying to deploy the schema during our test runs:
Caused by: java.lang.RuntimeException: Could not deduce Option[] type of field 'versionNumber' of class com.cx.Core2Common.schema.TranscodingJob
at scala.sys.package$.error(package.scala:27)
at scala.Predef$.error(Predef.scala:66)
at org.squeryl.internals.FieldMetaData$$anon$1.build(FieldMetaData.scala:441)
And here's the related case class:
case class TranscodingJob(@Column("uuid") id: TranscodingJob.Id,
owner: UserUUID,
data_object_uuid: DataObjectUUID,
status: TranscodingStatus.TranscodingStatus,
created_on: Timestamp = new DateTime,
modified_on: Timestamp = new DateTime,
version: Option[Long] = None) extends KeyedEntity[TranscodingJobUUID] {
def uuid = id
}
And the schema def
val transcodingJobs = table[TranscodingJob]("transcoding_jobs")
on(transcodingJobs)(
(t) => declare(
t.id is (unique, dbType(uuidDbType)),
t.data_object_uuid is (dbType(uuidDbType)),
t.owner is (dbType(uuidDbType)),
columns(t.owner, t.status) are (indexed)
)
)
Any ideas?