Class DtoGenerator
java.lang.Object
nl.datasteel.crudcraft.codegen.writer.DtoGenerator
- All Implemented Interfaces:
Generator
Generates Request, Response and Ref DTOs
honoring @Dto, @Request, @EnumString, @AuditTrail,
embedded classes and JPA-relaties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.squareup.javapoet.JavaFile> generate(ModelDescriptor md, WriteContext ctx) Generates DTO classes for the given model descriptor.intorder()Determines the execution order within the generator group (basic or CRUD).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.datasteel.crudcraft.codegen.writer.Generator
requiresCrudEntity, write
-
Constructor Details
-
DtoGenerator
public DtoGenerator()
-
-
Method Details
-
generate
Generates DTO classes for the given model descriptor. It creates Request, Response, and Ref DTOs based on the fields defined in the model descriptor. -
order
public int order()Description copied from interface:GeneratorDetermines the execution order within the generator group (basic or CRUD). Lower values run first.
-