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