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.14
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 - 2024 Weber Informatics LLC | Privacy Policy