Skip to content

Releases: Synergex/CodeGen

CodeGen 5.8.2

24 Feb 02:20
Compare
Choose a tag to compare

THIS RELEASE SHOULD NOT BE USED, IT CONTAINED A BUG THAT PREVENTED USE IN MOST CASES

CodeGen Release Notes

  • We added a new tweak named SQL_NAME_CONTIGUOUS_ARRAY that causes the <FIELD_SQLNAME> field loop expansion token to insert different field names when processing array fields.
  • This version of CodeGen was built with Synergy/DE 12.0.1.3275 and requires a minimum of version 10.1.1 to operate.

CodeGen 5.8.1

02 Feb 23:11
Compare
Choose a tag to compare

CodeGen Release Notes

  • We added the ability to define the minimum version of CodeGen that is required by your environment by setting the CODEGEN_MIN_VERSION environment variable.
  • We added support for generating sample data (JSON formatted) for structure parameters when using <PARAMETER_SAMPLE_DATA>.
  • We added a new method loop expansion token <METHOD_RETURN_SAMPLE_DATA>.
  • We corrected an issue that was preventing the -checkversion and other related operations from operating correctly.
  • We altered the <INTERFACE_NAME> token to support all case variations.
  • We changed the output of the <PARAM_TSTYPE> token to be consistent with the documentation by emitting structure names in camelCase rather than PascalCase.
  • We added a new mechanism for dealing with literal key segment values that require trailing spaces to be included as part of the literal value. This change can alter the output of the <SEGMENT_LITVAL> and <LITERAL_SEGMENT_VALUE> expansion tokens.
  • This version of CodeGen was built with Synergy/DE 12.0.1.3272 and requires a minimum of version 10.1.1 to operate.

CodeGen 5.7.9

20 Nov 06:06
Compare
Choose a tag to compare

CodeGen Release Notes

  • We added the ability to specify the list of structures to process, as well as any alias and file overrides to be used with those structures, via a structure input file. This can significantly reduce the length of codegen command lines, removing the barrier that can be hit if you generate code from hundreds of structures, and makes the code generation environment much easier to manage.
  • This version of CodeGen was built with Synergy/DE 12.0.1.3272 and requires a minimum of version 10.1.1 to operate.

CodeGen 5.7.8

19 Nov 23:49
Compare
Choose a tag to compare

CodeGen Release Notes

  • We added the ability to extend information defined in a Synergy method catalog by using a method catalog extensions file. This option is activated via a new command-line parameter -smcext. This in turn allows you to use custom expression and expansion tokens in interface loops, method loops and parameter loops.
  • We corrected an issue that was causing the custom Harmony Core token <HARMONYCORE_PARAMETER_SAMPLE_DATA> to produce incorrect data for parameters that were collections of structures.
  • This version of CodeGen was built with Synergy/DE 12.0.1.3272 and requires a minimum of version 10.1.1 to operate.

CodeGen 5.7.7

21 Oct 17:20
Compare
Choose a tag to compare

CodeGen Release Notes

  • We added a new method loop expansion token <METHOD_RETURN_CSTYPE_XF> and a new parameter loop expansion token <PARAMETER_CSTYPE_XF>.
  • We added a new parameter loop expression <IF PARAM_NAME_IS_xxxxx> where xxxxx can be replaced with the name of a parameter that you wish to match.
  • We added two new command-line options that can be used when processing metadata from a Synergy Method Catalog. The new options are -pexclude and -pinclude and they allow you to explicitly exclude or include certain parameters when processing parameter loops.
  • This version of CodeGen was built with Synergy/DE 12.0.1.3272 and requires a minimum of version 10.1.1 to operate.

CodeGen 5.7.6

07 Oct 16:55
Compare
Choose a tag to compare

CodeGen Release Notes

  • We added two new field loop expansion tokens <MAPPING_FUNCTION> and <UNMAPPING_FUNCTION>, and two new field loop expressions <IF MAPPING_FUNCTION> and <IF UNMAPPING_FUNCTION>.
  • We fixed an issue with the implementation of the GROUP_PREFIX_ALWAYS tweak that was added in the previous release, but was not operational. The feature will now work as intended.
  • We fixed an issue that was previously causing the <FIELD_ORIGINAL_NAME_MODIFIED> token to return incorrect values for implicit group array fields.
  • This version of CodeGen was built with Synergy/DE 12.0.1.3272 and requires a minimum of version 10.1.1 to operate.

CodeGen 5.7.5

16 Sep 16:49
Compare
Choose a tag to compare

CodeGen Release Notes

  • We added two new field loop expansion tokens, <FIELD_DESC_DOUBLE> and <FIELD_DESC_SINGLE> that can be used to resolve issues when double quote characters are present in a double-quoted string, or single quote characters are present in a single-quoted string.
  • We altered the behavior of the <ALTERNATE_KEY_LOOP_UNIQUE> such that any key segments that are also used as tag fields within the structure are excluded for the purposes of the comparison of segments between keys.
  • We added a new key segment loop expansion token named <SEGMENT_COMMA_NOT_LAST_NORMAL_FIELD>.
  • We altered the way that group field prefixes are appended to group fields. Previously, if a group field prefix existed for a group, the prefix would be automatically applied to the fields within the group. Now, the prefix is only applied if the "Use by compiler" option is also specified. This is consistent with the way that the Synergy compiler works.
  • In the unlikely event that the previous change affects your code, you can restore the previous behavior by using the new GROUP_PREFIX_ALWAYS tweak.
  • We fixed an internal issue in the RepositoryAPI library that was causing the Field.OriginalNameModified property to be unset when cloning one Repository field into another.
  • We fixed an issue that was previously causing the <FIELD_ORIGINAL_NAME_MODIFIED> token to return incorrect values for array fields within groups.
  • We altered the format of the output generated by the -version command line option to include the Synergy build number once it becomes available at compile time.
  • This version of CodeGen was built with Synergy/DE 12.0.1.3272 and requires a minimum of version 10.1.1 to operate.

CodeGen 5.7.4

01 Aug 23:46
Compare
Choose a tag to compare

CodeGen Release Notes

  • We extended the use of the -mexclude and -minclude options so that in addition to being supported with the -smc and -interface options, they can also be used with the -smcstrs and -interface options. This makes it possible to exclude from processing any structures that are only referenced by methods that are being excluded, or to select for processing only structures that are referenced by specific methods in a method catalog interface. Previously it was only possible to constrain the list of structures to be processed to structures referenced by all methods in an interface.
  • We added a new tweak named SQLNAMEN$$ID.
  • We improved error reporting if a repository field exceeds D28 which can happen if a GROUP field is typed as decimal.
  • We improved error reporting when attempting to use method catalog tokens without method catalog meta-data.
  • We improved the processing of the <FIELD_TYPE> token to ensure that is produces appropriate values when BINARY, ENUM and STRUCT fields are processed. Until recently the presence of these fields in a structure would prevent code generation for the structure.
  • This version of CodeGen was built with Synergy/DE 11.1.1h and requires a minimum of version 10.1.1 to operate.

CodeGen 5.7.3

10 Jul 01:26
Compare
Choose a tag to compare

CodeGen Release Notes

  • We made a slight change to the way that the <ALTERNATE_KEY_LOOP_UNIQUE> operates. Previously the loop would not compare alternate key segments with the primary key, but now it does. So the loop now processes any alternate keys that do not have identical key segments to the primary key or any previous alternate keys.
  • We added a new special structure expression token <STRUCTURE_HAS_FIELD_name> that allows you to detect the presence or absence of a named field within the structure.
  • We improved the logic used when processing unique key loops and unique alternate key loops.
  • We fixed a problem with the implementation of the -pa command line option that would cause CodeGen to fail when used with an input file containing multiple structures.
  • We fixed a problem with the implementation of the -tweaks option which could result in a null reference exception in some rare circumstances.
  • We reviewed and updated all sample templates that ship with CodeGen to ensure they use the latest capabilities such as taking advantage of complex expressions to simplify template complexity resulting from nested expressions.
  • This version of CodeGen was built with Synergy/DE 11.1.1g and requires a minimum of version 10.1.1 to operate.

CodeGen 5.7.2

10 Apr 18:05
Compare
Choose a tag to compare

CodeGen Release Notes

  • We improved the processing of several field loop expressions related to date and time fields, which were in some cases producing inaccurate results for nullable time fields.
  • We completely re-worked the implementation of code generation based on an xfServerPlus Synergy Method Catalog, bringing the implementation in line with the way that repository-based code generation works. Method catalog based code generation can now also be completely driven via the CodeGen API.
  • We added validation to ensure that method and parameter loop tokens can't be used when processing in -smcstrs mode, which is a repository-centric processing mode.
  • We completed the project of simplifying the structure of the documentation, making it easier to read, and easier to maintain.
  • This version of CodeGen was built with Synergy/DE 11.1.1g and requires a minimum of version 10.1.1 to operate.