openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prabu <prabumc...@gmail.com>
Subject solve javax.persistence.EntityNotFoundException with JPA (not by using @NotFound in HIBERNATE)
Date Tue, 15 Sep 2015 01:36:04 GMT
HI Team

I am using JPA for my project and retrieving data from database.

ManyToOne relationship A (table1) to B (table2),if some element not present
in B i am getting

javax.persistence.EntityNotFoundException.

But,I want result with null value if element not present in table2 .don't
want error to throw in page

How solve javax.persistence.EntityNotFoundException with JPA (not by using
@NotFound in HIBERNATE)

Could you please help.

-- 
Thanks & Regards
 Prabu.N

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message