source: source/MovieZilla-master/src/main/java/com/example/demo/model/PaymentType.java@ fc7ec52

Last change on this file since fc7ec52 was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 22 months ago

all files

  • Property mode set to 100644
File size: 931 bytes
Line 
1package com.example.demo.model;
2
3import lombok.Data;
4import org.springframework.beans.factory.annotation.Autowired;
5
6import javax.persistence.*;
7
8@Entity
9@Data
10@Table(name="payment_type")
11public class PaymentType {
12
13 @Id
14 @GeneratedValue(strategy = GenerationType.IDENTITY)
15 public Integer payment_type_id;
16
17 public String payment_type;
18
19 public PaymentType(Integer payment_type_id, String payment_type) {
20 this.payment_type_id = payment_type_id;
21 this.payment_type = payment_type;
22 }
23
24 public PaymentType() {
25
26 }
27
28 public Integer getPayment_type_id() {
29 return payment_type_id;
30 }
31
32 public void setPayment_type_id(Integer payment_type_id) {
33 this.payment_type_id = payment_type_id;
34 }
35
36 public String getPayment_type() {
37 return payment_type;
38 }
39
40 public void setPayment_type(String payment_type) {
41 this.payment_type = payment_type;
42 }
43
44}
Note: See TracBrowser for help on using the repository browser.