cNature.setAccessMode(AccessMode.valueOf("shared"));
cNature.setDetachable(table.isDetachable());
// TODO: Uncomment next line as soon as Annotation Classes have been updated!
// cNature.setAccessMode(AccessMode.valueOf(table.getAccessMode().toString()));
PrimaryKey pk = table.getPrimaryKey();
Iterator<String> pIt = pk.iterateKey();
while (pIt.hasNext()) {
cNature.addPrimaryKey(pIt.next());
}
}
}