final int nrows = 10;
for (int i = 0; i < nrows; i++) {
DataObject o = (DataObject) ctxt.newObject("Painting");
o.writeProperty("paintingTitle", "ptitle" + i);
}
ctxt.commitChanges();
// create and add new column to model and db
DbAttribute column = new DbAttribute("NEWCOL2", Types.VARCHAR, dbEntity);
column.setMandatory(false);