[jboss-user] [EJB/JBoss] - Re: Noob query problem :/ simple select clause.
weston.price@jboss.com
do-not-reply at jboss.com
Fri Sep 28 00:31:38 EDT 2007
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
anonymous wrote :
| getResultList()
|
method.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089552#4089552
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089552
More information about the jboss-user
mailing list