java - spring-jpa how to get EntityNotFoundException or similar on find* query methods? -


i'm struggling following problem: don't want null reference if there's no object in database.

all jpa providers have tried return empty list if there no matches query.

also,

collectionutils.isnotempty(resultlist); 

is friend.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -