When generating code for enums, knowing the table can be useful.
For example, we could have 2 tables: contract and project, with each an enum named type.
In this case, if we generate a file for each enum in the same package, without the table name we get a collision.
Using the table name, we can generate 2 files / classes: ContractType and ProjectType.
When generating code for enums, knowing the table can be useful. For example, we could have 2 tables:
contract
andproject
, with each an enum namedtype
. In this case, if we generate a file for each enum in the same package, without the table name we get a collision. Using the table name, we can generate 2 files / classes:ContractType
andProjectType
.