Last change
on this file since 3f5bf9e was e6ff724, checked in by Vzdra <vladko.zdravkovski@…>, 4 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
440 bytes
|
Rev | Line | |
---|
[e6ff724] | 1 | package it.finki.tinki.model;
|
---|
| 2 |
|
---|
| 3 | import lombok.Data;
|
---|
| 4 |
|
---|
| 5 | import javax.persistence.*;
|
---|
| 6 |
|
---|
| 7 | @Entity
|
---|
| 8 | @Data
|
---|
| 9 | public class Address {
|
---|
| 10 |
|
---|
| 11 | @Id
|
---|
| 12 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
| 13 | Long id;
|
---|
| 14 |
|
---|
| 15 | String country;
|
---|
| 16 | String city;
|
---|
| 17 | String street;
|
---|
| 18 |
|
---|
| 19 | public Address() {}
|
---|
| 20 |
|
---|
| 21 | public Address(String country, String city, String street) {
|
---|
| 22 | this.country = country;
|
---|
| 23 | this.city = city;
|
---|
| 24 | this.street = street;
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.