package com.baeldung.jackson.deserialization.jacksoninject;

import com.fasterxml.jackson.annotation.JacksonInject;

import java.util.UUID;

public class Person {

    @JacksonInject
    private UUID id;
    private String firstName;
    private String lastName;

    public Person(){

    }

    public Person(String firstName, String lastName) {
        this.id = UUID.randomUUID();
        this.firstName = firstName;
        this.lastName = lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public UUID getId() {
        return id;
    }
}
