Commit 3785247f authored by Martin Parák's avatar Martin Parák
Browse files

Adding POJOs. Closes #2.

parent da4c8ed1
package sk.jusska.sfgpetclinic.model;
import sk.jusska.sfgpetclinic.model.Person;
public class Owner extends Person {
}
package sk.jusska.sfgpetclinic.model;
import lombok.Data;
@Data
public class Person {
private String firstName;
private String lastName;
}
package sk.jusska.sfgpetclinic.model;
import java.time.LocalDate;
import lombok.Data;
@Data
public class Pet {
private PetType petType;
private Owner owner;
private LocalDate birthDay;
}
package sk.jusska.sfgpetclinic.model;
import lombok.Data;
@Data
public class PetType {
private String name;
}
package sk.jusska.sfgpetclinic.model;
public class Vet extends Person {
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment