All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.rtr.alchemy.example.dto.UserDto Maven / Gradle / Ivy

There is a newer version: 2.2.16
Show newest version
package io.rtr.alchemy.example.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import io.rtr.alchemy.dto.identities.IdentityDto;

/**
 * An example DTO to be used for service payload
 */
@JsonTypeName("user")
public class UserDto extends IdentityDto {
    private final String name;

    public UserDto(@JsonProperty("name") String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy