By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,188 Members | 844 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,188 IT Pros & Developers. It's quick & easy.

Exception in creating a delete query in EntityManager

P: 1
here is the query

Expand|Select|Wrap|Line Numbers
  1. int re = em.createQuery("delete object(o) 
  2. from Vote as o where = '"+replyId+"'").executeUpdate();
What's wrong in above query? (used jpa 1.0 Toplink provider)
Jul 18 '12 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 100+
P: 465
What error(s) are you getting? What is the error you're getting. Also, show more code, the error could be happening elsewhere
Jul 23 '12 #2

Expert Mod 10K+
P: 12,365
Why delete object(o) and not delete o?
Jul 23 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.