source: src/main/java/it/finki/tinki/model/Users/Account.java@ e6ff724

Last change on this file since e6ff724 was e6ff724, checked in by Vzdra <vladko.zdravkovski@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 655 bytes
Line 
1package it.finki.tinki.model.Users;
2
3import it.finki.tinki.model.enumerator.AccountType;
4import lombok.Data;
5
6import javax.persistence.*;
7
8@Entity
9@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
10@Data
11public abstract class Account {
12
13 @Id
14 @GeneratedValue(strategy = GenerationType.AUTO)
15 Long id;
16
17 String email;
18 String password;
19
20 String name;
21
22 AccountType accountType;
23
24 public Account(){}
25
26 public Account(String email, String password, String name, AccountType accountType) {
27 this.email = email;
28 this.password = password;
29 this.name = name;
30 this.accountType = accountType;
31 }
32}
Note: See TracBrowser for help on using the repository browser.