According to the [{{EntityNotFoundException}}|http://docs.oracle.com/javaee/6/api/javax/persistence/EntityNotFoundException.html] docs, we should load an entity Proxy even if we access its identifier.
Traditionally, Hibernate has been trying to avoid that, but, if we to do that , we won't have a chance to throw the {{EntityNotFoundException}} if the Proxy identifier points to no a non-existing table record. |
|