-
-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
bugSomething isn't workingSomething isn't workingcoregood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
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
bugSomething isn't workingSomething isn't workingcoregood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed