-
Jan 8th, 2013, 02:29 AM
#1
Why foundOne doesn't throw an EmptyResultDataAccessException
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules