You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Enum type at server side is not set value.
To Reproduce
Steps to reproduce the behavior:
Generate entity with enum column, such as: ONE,TWO,THREE
Start app
Add new record with enum value ONE
See error
sql error:
Expected behavior
Created record with enum value 'ONE'
Desktop (please complete the following information):
OS: Windows 10
Browser: Edge chromium
Caution
file /server/src/domain/enumeration/enum-type.ts done have value. It is: EnumType { ONE, TWO, THREE }
Then Mysql generate column with value '0', '1', '2'
Solution
change file enum-type.ts to:
'EnumType { ONE = 'ONE', TWO = 'TWO', THREE = 'THREE' }'
The text was updated successfully, but these errors were encountered:
Maybe we have to generate e2e entity test more useful without entityMock object in test template, that is with real sqlite query. In this way we can check eventual bugs in the test integration pipeline.
Would you fix this issue? As just said, You have to do this step:
Fill the enumValues variable with the string list.
For the test task, maybe it is a bit difficult and I could do it in future if for you is complicated. it requires to
Add new programmatically fields without entityMock variable according the entity generated. It will call the service without mock using generated test field type as in java template.
For any questions do not hesitate to ask me! Thanks
Describe the bug
Enum type at server side is not set value.
To Reproduce
Steps to reproduce the behavior:
sql error:
Expected behavior
Created record with enum value 'ONE'
Desktop (please complete the following information):
Caution
file /server/src/domain/enumeration/enum-type.ts done have value. It is:
EnumType { ONE, TWO, THREE }
Then Mysql generate column with value '0', '1', '2'
Solution
change file enum-type.ts to:
'
EnumType { ONE = 'ONE', TWO = 'TWO', THREE = 'THREE' }
'The text was updated successfully, but these errors were encountered: