5.11.1.1.1.1.1. example-code-instruction-simple-entity-foreach-attribute-all.xml

Listing 5.75 examples/example-code-instruction-simple-entity-foreach-attribute-all.xml
 1<?xml version="1.0" encoding="UTF-8"?>
 2<java_package xmlns="https://metafactory.io/xsd/v1/java-codeinstruction"
 3              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 4              xsi:schemaLocation="https://metafactory.io/xsd/v1/java-codeinstruction https://metafactory.io/xsd/v1/java-codeinstruction.xsd"
 5              name="${pattern.property.java.package.base}.dtos.simple"
 6              path="${pattern.property.java.main.directory}"
 7              package="domain_model">
 8  <class  name="${createSimpleDtoClassName(${object.name})}"
 9          foreach="object">
10    <field name="${attribute.name}"
11           foreach="attribute.all"
12    >
13      <datatype>${attribute.type}</datatype>
14    </field>
15  </class>
16</java_package>