You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if com.blazebit.persistence.Queryable would offer alternative Methods for getSingleResult. In fact a Method which swallows NoResultsException and NonUniqueResultException. A proper Naming would be findSingleResult. As this two Exceptions are unchecked Exceptions, very often it is not very safe to use getSingleResult, unless you really know your data.
Maybe instead of findSingleResult a Method which returns an Optional could be a good solution too.
It would be nice if com.blazebit.persistence.Queryable would offer alternative Methods for getSingleResult. In fact a Method which swallows NoResultsException and NonUniqueResultException. A proper Naming would be findSingleResult. As this two Exceptions are unchecked Exceptions, very often it is not very safe to use getSingleResult, unless you really know your data.
Maybe instead of findSingleResult a Method which returns an Optional could be a good solution too.
The text was updated successfully, but these errors were encountered: