com.sun.jdo.api.persistence.support.JDOUnsupportedOptionException: Update of a primary key field is not allowed.

Oracle Community | 807581 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Update of a primary key field is not allowed?

    Oracle Community | 1 decade ago | 807581
    com.sun.jdo.api.persistence.support.JDOUnsupportedOptionException: Update of a primary key field is not allowed.

    Root Cause Analysis

    1. com.sun.jdo.api.persistence.support.JDOUnsupportedOptionException

      Update of a primary key field is not allowed.

      at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.assertPKUpdate()
    2. com.sun.jdo
      SQLStateManager.prepareSetField
      1. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.assertPKUpdate(SQLStateManager.java:3736)
      2. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.removeRelationship(SQLStateManager.java:2684)
      3. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updateObjectField(SQLStateManager.java:2647)
      4. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.doUpdateField(SQLStateManager.java:3488)
      5. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.prepareSetField(SQLStateManager.java:3563)
      6. com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.prepareSetField(SQLStateManager.java:3520)
      6 frames