Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CreateQuery  RSS feed

 
Charlie Jones
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there!

I have another difficulty!

When I am using the EntityManager to create queries, it does not accept "where" statements

in other words:



words!

BUT



does not.

i dont understand what i might be doing wrong

thnx in advance

 
Diogo Gonzaga
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"select object(o) from Item as o where o.ITEMNAME='TeddyBear'"

Try again and it would be solved.
 
Charlie Jones
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou so much for the reply,
unfortunately its still giving me the error

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!