0 Replies Latest reply on Jun 29, 2006 12:19 PM by wei zhang

    UPDATE statement not supported?

    wei zhang Newbie

      I am using jboss-4.0.4 RC1 with Hibernate 3.1.2

      try to excute a simple Update SQL in my app through normal routine

      something like

      q= em.createQuery("update ....."); (the statement is very basic)

      no alias in the query, I got "not supported for DML operations" exception

      my query translator is; org.hibernate.hql.ast.ASTQueryTranslatorFactory

      anybody can help? I am a beginer here.

      thanks a lot.