posted 17 years ago
Hi,
I am new to JPA and I have this issue...
I need to get an entity from the database based on the phone number and if the phone number exists my code works fine but throws javax.persistence.NoResultException: No entity found for query if the number does not. All I want ot do is to return null if the phone number does not exist in the database. Can any body help me with this..
my code is as follows..
Can some body help me with this...
Thanks,
Samanth.