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?
 
 

Reply via email to