Hi I wonder why the method findOne doesn't throw an NoResultException or EmptyResultDataAccessException. I find it much more natural if I start searching with an Id.
Is it possible to change the behavior and how? Ok one approach could be an Proxy which check if the Result is null an throw than an exception, but this sounds wired to me. Furthermore it would be interesting to know the drawbacks if I throw an exception.


Reply With Quote
.
