Re: [appfuse-user] DataAccessException not thrown...

2006-12-04 Thread maskkkk
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

Re: [appfuse-user] DataAccessException not thrown...

2006-12-03 Thread Michael Horwitz
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

[appfuse-user] DataAccessException not thrown...

2006-12-01 Thread maskkkk
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 > { >