# UpdateGuestNameDTO.java

    package cloud.wconnect.frontoffice.pojo.dto.pastreservation;

    import lombok.Data;
    import lombok.Setter;
    import org.hibernate.validator.constraints.Length;

    import jakarta.validation.constraints.NotBlank;

    /**
     * @author: yyt
     * 2024-10-15
     */
    @Data
    @Setter
    public class UpdateGuestNameDTO {

        /**
         * first name
         */
        @NotBlank(message = "the firstName must not be blank")
        @Length(max = 60, message = "the firstName must not be longer than 60 characters")
        private String firstName;

        /**
         * last name
         */
        @NotBlank(message = "the lastName must not be blank")
        @Length(max = 60, message = "the lastName must not be longer than 60 characters")
        private String lastName;

        public String getFirstName() {
            return firstName.trim();
        }

        public String getLastName() {
            return lastName.trim();
        }

    }