Comparing Objectivity and Versant: Population
// Get a handle on the container in the first database
ooHandle(Collection) db1Cont = new("DB1_CONT",1,NPAGES,0,dbHandle1) Collection("Stars1");
// and a handle on the container in the second
ooHandle(Collection) db2Cont = new("DB2_CONT",1,NPAGES,0,dbHandle2) Collection("Stars2");
cout << "Generating " << NSTARS << " stars " << endl;
star = new(db1Cont) Star(x,y,sigma,i);
star = new(db2Cont) Star(x,y,sigma,i);
// Generate NSTARS stars in the first database,
cout << "Generating " << NSTARS << " stars " << endl;
Star *star = O_NEW_PERSISTENT(Star) (x,y,sigma,i);
// change to the second database
::dom->_default_db("starsdb2");
Star *star = O_NEW_PERSISTENT(Star) (x,y,sigma,i);
Would be better to generate stars in both databases in the same loop, but not clear how this is done ...