buf.append("\">\n");
Map<String, RawField> fields = getFields();
if (fields != null) {
for (RawField field : fields.values()) {
String name = field.getName();
RawType type = field.getType();
buf.append(INDENT);
buf.append("<Field");
buf.append(" name=\"");
buf.append(name);
buf.append("\" typeId=\"");
buf.append(type.getId());
buf.append("\" typeClass=\"");
buf.append(type.getClassName());
buf.append('"');
if (priMeta != null &&
priMeta.getName().equals(name)) {
buf.append(" primaryKey=\"true\"");
if (priMeta.getSequenceName() != null) {