• 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: 21204
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.)
 
You save more money with a clothesline than dozens of light bulb purchases. Tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!