Oh I get it, so I should be testing for null, and if it returns null than I
ought to throw that type of exception.
Michael Horwitz wrote:
>
> Hi,
>
> According to the Hibernate Javadoc what you are seeing is the expected
> behaviour. Session->get() returns null if no such entity exists in the
Hi,
According to the Hibernate Javadoc what you are seeing is the expected
behaviour. Session->get() returns null if no such entity exists in the
database?
Mike
On 12/1/06, mas <[EMAIL PROTECTED]> wrote:
Hello,
I'm trying to retrieve a record that does not exist in a unit test.
When I
Hello,
I'm trying to retrieve a record that does not exist in a unit test.
When I do so Hibernate does not throw a DataAccessException (I'm using
Appfuse 1.9.4)
"In failing in my Unit Test wrote:
>
>...
> public void testAddAndRemoveComment() throws Exception
> {
>