• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unexpected token in hibernate

 
Bart Hofma
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is an stripped down example of the query im trying to run i java using hibernate :



its giving me an error > unexpected token 67875343

why is it only showin half the string here , and what s the error about?
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bart Hofma wrote:this is an stripped down example of the query im trying to run i java using hibernate :



its giving me an error > unexpected token 67875343

why is it only showin half the string here , and what s the error about?




that line treats transactionID like it is a number, which explains why it tries 67875343 . Try something like :

as you are already setting the value of transactionID with the following line:



you don't need to do it twice.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic