-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enum type properties can't be generated into models in Java #99
Comments
Hi, this is a new feature, marking it as such. Currently the codegen does not generate enum classes. |
I have privately made modifications that allow this, and generate an enum inside the model class definition. |
This feature has been added to the java templates in 2.1.x. See the |
I'm having trouble finding the version where this is supposed to be working. The develop_2.0 branch doesn't generate any enum classes for me.
|
Why is this closed? As of 2.1.4 Enums are still generated inside the model which is wrong. |
Why? Because this ticket isn't about having external enums, it's about having enums. Making them inline is not wrong it's a style preference. I DO want to support external classes, and we're in the process of adding that support. But that's why it's closed. There's another one around external enums. |
Ah, sorry thanks. |
If a property is an enum, the Java generator doesn't create an Enum java file for it.
For example,
With this example model, in addition to Employee.java, shouldn't it also generate a Department.java like the following?
The text was updated successfully, but these errors were encountered: