Gen model "Auto Number" attribute has incorrect generated Java code
search cancel

Gen model "Auto Number" attribute has incorrect generated Java code

book

Article ID: 420249

calendar_today

Updated On:

Products

Gen - Workstation Toolset Gen

Issue/Introduction

Have a Gen 8.6 model entity with Number attribute which has Category "Auto Number".
After Java Web Generation the generated code sets the attribute in the insert statement to a zero value and seems to be ignoring the "Auto Number".

Environment

Gen 8.6 Workstation Toolset

Cause

The attribute had been changed to Auto Number in the Data Model but a Retransformation had not been done in the Data Structure List or alternatively the attribute had not been deleted and reimplemented in the DSL.
That is per doc page  Gen™ 8.6 > Developing > Designing > Designing Client-Server Applications > Designing the Data Structure > Retransforming the Data Model
Therefore the Java generated code had not picked up the Auto Number change.

Resolution

After the attribute was reimplemented in the Data Structure List the newly generated code was correct.