The only distinction between those two is once the code is generated, DTO class will have jackson supported annotation such as @JsonProperty while Model class only contains the fields and acts as a POJO.
Adding fields can be done just like as described on Entity section. DTO itself can be related with another one just as shown as on the video above. By simply inputing the DTO name in the autosuggest field it will connect automatically to the other DTO. Removing the edge will also reflect to the variable being removed which holds the relation with other one.
Spring boot and Java code generator. It helps Java Spring developer to generate code by simple drag and drop the component using the designer tool
© Copyright Codern.io. All Rights Reserved