Closed verrol closed 7 years ago
This is not something JHipster supports at the moment and hence cannot ve supported here as well
@deepu105 , I know that JHipster's JDL Studio doesn't currently support default values. This was a request, may be I used the incorrect issue, to ask for default support to be added.
If you would reconsider, there are several options I can think of:
If considered, I think the first option is the best.
Thanks.
.v
Hi @deepu105 @jdubois Hey friends, I feel this will be a useful feature, can we reconsider adding support for this
@it-sumanp we dont have enough bandwidth to do this at the moment. If you are willing to contribute this as PR we will happy to consider
Doesn't this also needs to be done in the JDL first? Not sure @MathieuAA also have time for this
It would be a nice to have. I was looking for the way to do it right now
@jdubois It's not that difficult, it would be done post v3.1.0
Generator doesn't support it anyway so we don't have to do it in JDL unless someone adds support in generator
@MathieuAA if you have time,i think it's a wonderful things,thanks mathieuAA
Please considering adding the ability to specific a default value in the .jdl file.
Use Case: At design time, while working on the .jdl file, hints can be provided for the UI. If there is a default value for a field, that value can be sent both to db when the tables are created and to the generated UI. Hence, making it easier for the default to enforce the design.
Example: entity A{ quantity Integer required min(10) max(100) default(10), model String required default("basic"), count Long default(0) }