0 Replies Latest reply on Mar 4, 2008 9:54 AM by satyendrakpatel

    How to IDENTITY_INSERT in set to ON??

    satyendrakpatel

      Hi All,

      I used EntityHome of the JBOSS Seam API in my application. It's working fine in case of update(), remove() etc. But When I tried to persist a new record it give me an exception as :-
      Caused by: java.sql.SQLException: Cannot insert explicit value for identity column in table 'Person' when IDENTITY_INSERT is set to OFF.

      So how to ON the IDENTITY_INSERT ?
      or needs some annotation for this?

      I use SQL server 2005 and spring frame work.

      Thanks