openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <craig.russ...@oracle.com>
Subject Re: solve javax.persistence.EntityNotFoundException with JPA (not by using @NotFound in HIBERNATE)
Date Tue, 15 Sep 2015 03:54:54 GMT
Hi Prabu,

Can you post your schema, entities, mapping (annotations in the entities are sufficient),
and application code that demonstrates the issue? Perhaps filing a JIRA with attachments is
the easiest way to do this.

Thanks,

Craig

> On Sep 14, 2015, at 6:36 PM, Prabu <prabumca06@gmail.com> wrote:
> 
> 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

Craig L Russell
Architect, Oracle
http://db.apache.org/jdo
408 276-5638 mailto:Craig.Russell@oracle.com
P.S. A good JDO? O, Gasp!


Mime
View raw message