I'm having the same problem with a single OQL... 

        'select s from QCtrlAcesso.Sistema'



==========================
 Marcio Antonio Ramos Alves  
      Quality Software Ltda.             
    0 XX 21 3475-3013         
                                                            
    [EMAIL PROTECTED]      
    [EMAIL PROTECTED]            
    [EMAIL PROTECTED]          
==========================

>>> [EMAIL PROTECTED] 02/08/2001 10:00:21 >>>
    After load operation on master object I do commit without any changes in dependent 
but castor try to recreate them anyway as if I've modified dependets' collection.
But I'm not!
Code:
  db.begin();
  ContractStore cs= (ContractStore)db.load( ContractStore.class, "Contract3");
  Vector c= cs.getStages();
  System.out.println( "Length is "+ c.size());
  System.out.println( ((StageStore)c.get(1)).getContract_no().getContract_no());
  db.commit();//SQL exception on dependents table- primary key violation.

What's the problem?

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

Reply via email to