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

tk.hongkailiu.test.app.mongodb.entity.Person Maven / Gradle / Ivy

The newest version!
package tk.hongkailiu.test.app.mongodb.entity;

import org.springframework.data.annotation.Id;


public class Person {

    @Id private String id;

    private String name;

    private String country;

    public Person(String name, String country) {
        super();
        this.name = name;
        this.country = country;
    }

    public Person() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    @Override public String toString() {
        return String.format("Person[id=%s, name='%s', country='%s']", id, name, country);
    }



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy