gnormal / gnorm

A database-first code generator for any language
https://gnorm.org
Other
487 stars 40 forks source link

Table name is unknown in enum generation #98

Open wuleninja opened 5 years ago

wuleninja commented 5 years ago

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.