This content has been marked as final.
Show 2 replies
-
1. Re: Noob query problem :/ simple select clause.
weston.price Sep 28, 2007 12:31 AM (in response to yacho)http://java.sun.com/javaee/5/docs/api/
As per the API specification, the getSingleResult() method should throw a NoResultException if an entity cannot be found. You are simply seeing the original exception chained. To execute without throwing an exception you will need to use the
getResultList()
method. -
2. Re: Noob query problem :/ simple select clause.
yacho Sep 28, 2007 10:37 AM (in response to yacho)Yes - i figured that out after posting on Seam's forum.
One more thing. Basically Seam always get's me chainded exceptions and its hard to know what's what. - is there a way to print only part of a stack trace wich is directly responsible for exception (all i know i can use is getMesage and getStackTrace())