我有以下方法蒙上成爲可能。我錯了什麼?在斯卡拉
@Transactional
def registerChildminderAccount(childminderAccount: ChildminderAccount): Boolean = {
childminderAccountDAO.save((ChildminderAccount) generateTokenForAccount(childminderAccount))//problem here!!
if (mailerService.requestChildminderConfirmation(childminderAccount)) {
return true
} else {
return false
}
}
我得到以下錯誤:value generateTokenForAccount is not a member of object com.bignibou.domain.ChildminderAccount
我彷彿是調用的是ChildminderAccount類generateTokenForAccount。
任何人都可以請幫忙嗎?
非常感謝Tomasz! – balteo 2012-02-27 23:04:57