2012-08-30 5 views

답변

1

이 예에서, 당신이 원하는 :

import anorm.Id  // if you don't already have import anorm._ 

case class User(id: Pk[Long], name:String) { 
    def loaded = id match { 
    case NotAssigned => false 
    case Id(refererId) => true 
    } 
}