cInfo.addNature(JDOClassInfoNature.class.getName());
JDOClassInfoNature cNature = new JDOClassInfoNature(cInfo);
while (it.hasNext()) {
Object tmpObject = it.next();
if (tmpObject instanceof Table) {
Table table = (Table) tmpObject;
cNature.setTableName(table.getName());
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());
}
}