This one time, at band camp, Ebersole, Steven said:

ES>The query runs fine, and the various company types are printed out, but the
ES>db.commit() throws the following exception:
ES>
ES>        org.exolab.castor.jdo.PersistenceException: Identity changes is not
ES>allowed!
ES>                at
ES>org.exolab.castor.persist.ClassMolder.preStore(ClassMolder.java:1101)
ES>                at
ES>org.exolab.castor.persist.LockEngine.preStore(LockEngine.java:710)
ES>                at
ES>org.exolab.castor.persist.TransactionContext.prepare(TransactionContext.java
ES>:1146)
ES>                at
ES>org.exolab.castor.jdo.engine.DatabaseImpl.commit(DatabaseImpl.java:498)
ES>
ES>Not sure exactly where I tried to change the identity?!?  It works fine if I
ES>simply use the db.rollback() statement.  Anyone else encountered this?
ES>Is it a problem to just use the rollback method (we are using "long
ES>transactions", so nothing will be getting updated here).

Steve,

You state that you're using long transactions, but I see no update()?
Also, are you using a key-generator?

Bruce
--

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to