source: src/main/java/com/example/villadihovo/model/payments/OnSite.java

Last change on this file was f7c05a1, checked in by Elena Shulevska <elena.shulevska@…>, 15 months ago

initial commit of the source code on origin

  • Property mode set to 100644
File size: 602 bytes
Line 
1package com.example.villadihovo.model.payments;
2
3import com.example.villadihovo.model.users.UserTable;
4import jakarta.persistence.*;
5import lombok.AllArgsConstructor;
6import lombok.Data;
7import lombok.NoArgsConstructor;
8
9@AllArgsConstructor
10@NoArgsConstructor
11@Data
12@Entity
13@PrimaryKeyJoinColumn(name = "payment_id")
14@Table(name="on_site")
15public class OnSite extends Payment {
16
17 @Column(nullable = false)
18 private String currency;
19
20 @Column(nullable = false)
21 private String payment_type;
22
23 @JoinColumn(name = "user_id", nullable = false)
24 @ManyToOne
25 private UserTable user_id;
26}
Note: See TracBrowser for help on using the repository browser.