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
|
Rev | Line | |
---|
[f7c05a1] | 1 | package com.example.villadihovo.model.payments;
|
---|
| 2 |
|
---|
| 3 | import com.example.villadihovo.model.users.UserTable;
|
---|
| 4 | import jakarta.persistence.*;
|
---|
| 5 | import lombok.AllArgsConstructor;
|
---|
| 6 | import lombok.Data;
|
---|
| 7 | import lombok.NoArgsConstructor;
|
---|
| 8 |
|
---|
| 9 | @AllArgsConstructor
|
---|
| 10 | @NoArgsConstructor
|
---|
| 11 | @Data
|
---|
| 12 | @Entity
|
---|
| 13 | @PrimaryKeyJoinColumn(name = "payment_id")
|
---|
| 14 | @Table(name="on_site")
|
---|
| 15 | public 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.