source: src/main/java/com/example/medweb/model/Covek.java@ e5fefbd

Last change on this file since e5fefbd was e5fefbd, checked in by Anita Terziska <63020646+Nit4e@…>, 22 months ago

initial commit

  • Property mode set to 100644
File size: 798 bytes
Line 
1package com.example.medweb.model;
2
3
4import lombok.Data;
5
6import javax.persistence.*;
7
8
9
10@Data
11@Entity
12@Inheritance(strategy = InheritanceType.JOINED)
13@Table(uniqueConstraints = {@UniqueConstraint(columnNames = "email")})
14public class Covek {
15
16 @Id
17 @GeneratedValue (strategy = GenerationType.IDENTITY)
18 private Integer covek_id;
19 @Column(unique = true)
20 private String email;
21 private String pass;
22 @Column(columnDefinition = "bpchar(13)")
23 private String embg;
24 private String ime;
25 private String prezime;
26
27 public Covek() {
28 }
29
30 public Covek(String email, String pass, String embg, String ime, String prezime) {
31 this.email = email;
32 this.pass = pass;
33 this.embg = embg;
34 this.ime = ime;
35 this.prezime = prezime;
36 }
37}
Note: See TracBrowser for help on using the repository browser.