Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Java code > Reverse engineering legacy Java code > Generating Java code > Setting up data type mappings - optional (Java code)
  
Setting up data type mappings - optional (Java code)
If you create a basic type in the Model, you may have to map it to a Java type in the JavaGen.ini file. For more information, see Basic type mapping for Java (Java code).
To specify data type mappings
1. Using a text editor such as Notepad, open the JavaGen.ini file, which resides in the 'PTC Integrity Modeler\Modeler\System\JavaGen' folder.
2. In the Datatype Mappings section, Insert or change your basic types using the syntax:
<Modeler Type=<java Type
Where <Modeler Typeis not case sensitive and <Java Typeis case sensitive.
3. Save and close the JavaGen.ini file.
4. If ACS is running, stop and restart the ACS.
To specify a default data type for attributes, parameters and type definitions:
1. Using a text editor such as Notepad, open the JavaGen.ini file, which resides in the 'PTC Integrity Modeler\Modeler\System\JavaGen' folder.
2. In the [Datatype Default] section, set the default value as required.
When an Attribute, Parameter or Type Definition does not have a data type specified, ACS will use the default value you specified.
To specify a default data type for operations:
1. Using a text editor such as Notepad, open the JavaGen.ini file, which resides in the 'PTC Integrity Modeler\Modeler\System\JavaGen' folder.
2. In the [Datatype Default] section, set the operationdefault value as required.
When an Operation does not have a data type specified, ACS will use the default value you specified.