0
的東西,如果我嘗試find.ref(id)
的東西不存在,我得到這個異常:播放框架檢查,如果在數據庫中存在與Ebean
play.api.Application$$anon$1: Execution exception[[EntityNotFoundException: Bean not found during lazy load or refresh. id[2] type[class models.Argument]]]
有沒有辦法避免這一點,當事情沒有檢測存在,不使用find.byId
? (byId
一般是比較慢的,所以我不希望儘可能使用它。)