Skip to content

Generated Enum DTOs #62

@nirodg

Description

@nirodg

The generated DTO uses the original ENUM that is defined in the Entity. We need to make sure we have a 1:1 unless specified by the user, possibly supplying CUSTOM_DTO_ENUM.class to the HyperResource

Current generated code:

@JsonInclude(JsonInclude.Include.NON_NULL)
public class OrderDTO extends HyperDto {
    @JsonProperty("orderNumber")
    private int orderNumber;

    @JsonProperty("status")
    private OrderStatus status; // <-- Not the expected behavior 
...

Expected:

   @JsonProperty("status")
    private OrderStatusDTO status; // <-- Expected DTO

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions