What kind of language do you generate ? Do you mean initial value for attributes in a domain class ?
I'm generating SQLAlchemy ORM code for use with python, This is the kind of result code that I generating: class HSCode(Base): id = Column(Integer, nullable=False, primary_key=True, index=True) national_tariff = Column(String(2), nullable=True, index=True, default="00") picture_id = Column(Integer, ForeignKey("picture.id"), nullable=True) is_activated = Column(Boolean, nullable=False, default=True) picture = relationship("Picture", foreign_keys=[picture_id]) And this is the DSL model for that: HSCode{ id : int { @Id, @AutoIncremented} ; national_tariff : string { @SizeMax(2)}; is_activated : boolean {@NotNull}; display_order : int { @NotNull }; picture : Picture; } In the DSL model, I can't find a way to store and generating these parts: 1. index=True 2. default="00"; default=True
Yes, you're right the "default value" annotation is not yet implemented in DSL model. It will come soon with others annotations and the new "tag" feature.
The @DefaultValue is now available (since version 3.2.2 ) See https://twitter.com/telosys/status/1258356601918013442