During inserting or updating objects my database ( Oracle 9i ) throws Exception ( java.sql.SQLException: ORA-02291:integrity constraint (%s.%s) violated - parent key not found) .
I debugged my JDBC connection, and I saw that OJB sends to my db DELETE commands... WHY ????
Why does OJB try to delete my objects during INSERT or UPDATE operations ??? I don't want to delete any objects.
I don't understand it... What is the cause of this strange behaviour??? Maybe I have made a mistake in repository.xml, during object mapping ??? I have set those parameters: ( auto-retrieve="true" otm-dependent="true" auto-delete="false" auto-update="false").
I haven't got any ideas.... It's a huge problem for me...
Thanks for help
Best regards mario
This is the code of my insert, update method:
***********************************
OTMKit kit = SimpleKit.getInstance();
OTMConnection conn = null;
Transaction tx = null;
try {
conn =
kit.acquireConnection(PersistenceBrokerFactory.getDefaultKey());
tx = kit.getTransaction(conn); tx.begin(); conn.makePersistent(jo);
tx.commit(); } catch (LockingException e) {
********************************
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
