• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to write update and insert statements using EJB-QL?

 
NareshAnkuskani Kumar
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know weather EJB-QL is only for writing select statements.

Can we write update and insert statements using EJB-QL?
 
Ionut Bucurescu
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With EJB 2.1(j2ee 1.4) only SELECT statements are allowed.
With EJB 3.0(j2ee 1.5) only SELECT, UPDATE and DELETE statements are allowed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic