• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.persistence.NoResultException  RSS feed

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting this exception:




which [going by the exception] is from this block of code:





however, i can't seem to figure out why or what i have done wrong in my @NamedQuery insert statement to resolve this issue.
Here's my Entity class:




What could be wrong?
 
Sheriff
Posts: 21255
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a guess, but could it be the case that there are no records for that link?

(I'm assuming the referenceLinks property vs the refLinks in the query is a copy-paste error of some kind.)
 
The knights of nee want a shrubbery. And a tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!