The purpose of the Java Transformation is to convert Platform-Independent Model (PIM) elements to language-specific Java class elements. The transformation converts the PIM model types to Java types and creates encapsulation according to Enterprise Architect's options for creating properties from Java attributes, i.e. producing the getters and setters according to the rules you have defined.
To set the code generation options for Java code generation, choose the Tools | Options | Source Code Engineering | Java menu option to display the Java Specifications page.
So from our PIM:
We transform to: