2 Replies Latest reply on Apr 4, 2004 8:59 AM by claude.glauser

    How can I prevent sql update statement on cmp-beans ?

    claude.glauser

      Hi,

      i looked at the issued sql statements for a jboss-ql query.
      There are only two statements to retreieve all beans :), but
      also an update statement for every bean when the function
      returns:

      Executing SQL: UPDATE documententity SET Creation_Date=?, Modification_Date=? WHERE Id=?

      I am not aware that my code changes creation_date nor modification_date.

      What are the conditions that an update statement will be performed ?
      Is there a way to prevent it ?

      Thanks a lot for your answers.