Error added: 2008-06-10T12:12:28Z
Handle the exceptipon with try catch and eat the exception.
This is correct. From http://www.hibernate.org/hib_docs/ejb3-api/javax/persistence/Query.html#getSingleResult%28%29 getSingleResult() Execute a SELECT query that returns a single result. Returns: the result Throws: NoResultException - if there is no result NonUniqueResultException - if more than one result IllegalStateException - if called for a Java Persistence query language UPDATE or DELETE statement
Throws NoResultException
Use jdbc instead hibernate/jpa
good
If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people
struggling with this too.
If you want to be notified via email when this is solved, enter your email address here: