sai-pullabhotla
7/21/2016 - 8:46 PM

Catatumbo - Full Person Entity

Catatumbo - Full Person Entity

import com.jmethods.catatumbo.Entity;
import com.jmethods.catatumbo.Identifier;
import com.jmethods.catatumbo.Property;

@Entity(kind = "people")
public class Person {

    @Identifier
    private long id;

    @Property(name = "fname")
    private String firstName;

    @Property(name = "lname")
    private String lastName;

    @Property(indexed = false)
    private int birthYear;

    private boolean citizen;

    public long getId() {
        return id;
    }

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

    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 int getBirthYear() {
        return birthYear;
    }

    public void setBirthYear(int birthYear) {
        this.birthYear = birthYear;
    }

    public boolean isCitizen() {
        return citizen;
    }

    public void setCitizen(boolean citizen) {
        this.citizen = citizen;
    }
}