private void complementDataModelWithTableEnrichment (Table table, Entity entity) {
complementWithEntityField(table, entity);
}
private void complementWithViewVirtualPrimaryKey(View view, Entity entity) {
VirtualPrimaryKey virtualPrimaryKey = entity.getVirtualPrimaryKey();
if (virtualPrimaryKey!=null) {
if (virtualPrimaryKey.getColumnName()!=null) {
addVirtualPrimaryKey(view, virtualPrimaryKey.getColumnName());
}
if (virtualPrimaryKey.getProperties()!=null)
for (Property property : virtualPrimaryKey.getProperties()) {
if (property.getName().equals("virtualPrimaryKey")) {
addVirtualPrimaryKey(view, property.getValue());
}
}
}