We need to update the text template contents to call the newly created javaType script:
[#package tutorial.java]
[#template public JavaSource(class : uml21.Class)]
[#file]generated/${class.name}.java[/#file]
public [#if class.isAbstract]abstract [/#if]class ${class.name} {
[#-- Attributes declaration --]
[#foreach attr : uml21.Property in class.attribute]
private ${attr.javaType} ${attr.name};
[/#foreach]
}
[/#template]
Relaunch the generation and open the file Order.java:
public abstract class Order {
private String date;
private java.util.Collection items;
private Customer customer;
}