title: Why JPA uses javax.persistence.NoResultException
body: <p>Is not usage of <code>javax.persistence.NoResultException</code> violation of the basic principles of exception usage in Java?</p>
  
  <p>Exceptions should not be used to control normal flow of program. Returning zero result from a database query seems to me pretty standard (not exceptional) situation. One which will be handled by calling code anyway.</p>