我有一個實體聲明忽略實體領域
case class Snippet(id: Long,
name: String,
text: String,
@Column("created_at") createdAt: Date,
@Column("user_id") userId: Option[Long],
@Transient author: Option[User]
) extends KeyedEntity[Long] {
def this() = this(0, "", "", new Date(), Some(0), Some(new User()))
}
但Squeryl 0.9.5-6還是失敗,java.lang.RuntimeException: field type models.squeryl.User is not supported
。有想法該怎麼解決這個嗎?