Last change
on this file since 4a15c9c was e6ff724, checked in by Vzdra <vladko.zdravkovski@…>, 4 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
527 bytes
|
Rev | Line | |
---|
[e6ff724] | 1 | package it.finki.tinki.model.Users;
|
---|
| 2 |
|
---|
| 3 | import it.finki.tinki.model.Address;
|
---|
| 4 | import it.finki.tinki.model.enumerator.AccountType;
|
---|
| 5 | import lombok.Data;
|
---|
| 6 |
|
---|
| 7 | import javax.persistence.Entity;
|
---|
| 8 | import javax.persistence.OneToOne;
|
---|
| 9 |
|
---|
| 10 | @Entity
|
---|
| 11 | @Data
|
---|
| 12 | public class Company extends Account{
|
---|
| 13 |
|
---|
| 14 | @OneToOne
|
---|
| 15 | Address address;
|
---|
| 16 |
|
---|
| 17 | public Company(){}
|
---|
| 18 |
|
---|
| 19 | public Company(String email, String password, String name, AccountType accountType, Address address) {
|
---|
| 20 | super(email, password, name, accountType);
|
---|
| 21 | this.address = address;
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.