source: source/MovieZilla-master/src/main/java/com/example/demo/model/Client/Client.java

Last change on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 897 bytes
Line 
1package com.example.demo.model.Client;
2
3import com.example.demo.model.User;
4import lombok.Data;
5
6
7import javax.persistence.*;
8import java.io.Serializable;
9
10@Table
11@Entity
12@Data
13public class Client{
14
15 @EmbeddedId
16 private ClientCompositeKey clientCompositeKey;
17
18 Integer client_id;
19
20 public Client(ClientCompositeKey clientCompositeKey, Integer client_id) {
21 this.clientCompositeKey = clientCompositeKey;
22 this.client_id = client_id;
23 }
24
25 public Client() {
26
27 }
28
29 public ClientCompositeKey getClientCompositeKey() {
30 return clientCompositeKey;
31 }
32
33 public void setClientCompositeKey(ClientCompositeKey clientCompositeKey) {
34 this.clientCompositeKey = clientCompositeKey;
35 }
36
37 public Integer getClient_id() {
38 return client_id;
39 }
40
41 public void setClient_id(Integer client_id) {
42 this.client_id = client_id;
43 }
44}
Note: See TracBrowser for help on using the repository browser.