Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] javax.persistence.NoResultException

Hello

I did get the following exception:
javax.persistence.NoResultException: getSingleResult() did not retrieve any entities.

This exception is correct, because there was nu such object in the db.
But if the object doesn't exist, I want to return a null object and not a NoResultException

Is there a way how I can do that?

Leon



Back to the top