• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate's update problem

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all~

i'm new to Hibernate.Now i'm falling into the "update" problem of hibernate~

i user the HQL editor in Myeclipse to test the HQL update statement "update Order as o set o.orderName = 'rfv' where o.orderName = 'bec'"

error comes:"org.hibernate.hql.QueryExecutionRequestException: Not supported for DML operations "

when i run the class"testF" no errors come out

let me know why this erroe comes out

thanks~~~

-----------------------------------------------------------------------------------------

here is my DB table
1/ Table "user "


2/Table "Order"


------------------------------------------------------

Java Class
1/Class "User"


2/Class "Order"

---------------------------------------------
***.hbm.xml
1/User.hbm.xml


2/Order.hbm.xml

------------------------------------------------------
Class "OrderDaoImpl"

-----------------------------------------------------
The test class "TestF"
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic