Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Parák
sfg-pet-clinic
Commits
3785247f
Commit
3785247f
authored
Mar 31, 2020
by
Martin Parák
Browse files
Adding POJOs. Closes
#2
.
parent
da4c8ed1
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/main/java/sk/jusska/sfgpetclinic/model/Owner.java
0 → 100644
View file @
3785247f
package
sk.jusska.sfgpetclinic.model
;
import
sk.jusska.sfgpetclinic.model.Person
;
public
class
Owner
extends
Person
{
}
src/main/java/sk/jusska/sfgpetclinic/model/Person.java
0 → 100644
View file @
3785247f
package
sk.jusska.sfgpetclinic.model
;
import
lombok.Data
;
@Data
public
class
Person
{
private
String
firstName
;
private
String
lastName
;
}
src/main/java/sk/jusska/sfgpetclinic/model/Pet.java
0 → 100644
View file @
3785247f
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
;
}
src/main/java/sk/jusska/sfgpetclinic/model/PetType.java
0 → 100644
View file @
3785247f
package
sk.jusska.sfgpetclinic.model
;
import
lombok.Data
;
@Data
public
class
PetType
{
private
String
name
;
}
src/main/java/sk/jusska/sfgpetclinic/model/Vet.java
0 → 100644
View file @
3785247f
package
sk.jusska.sfgpetclinic.model
;
public
class
Vet
extends
Person
{
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment