source: src/main/java/com/example/villadihovo/model/payments/Online.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: 527 bytes
RevLine 
[f7c05a1]1package com.example.villadihovo.model.payments;
2
3import jakarta.persistence.Column;
4import jakarta.persistence.Entity;
5import jakarta.persistence.PrimaryKeyJoinColumn;
6import jakarta.persistence.Table;
7import lombok.AllArgsConstructor;
8import lombok.Data;
9import lombok.NoArgsConstructor;
10
11@AllArgsConstructor
12@NoArgsConstructor
13@Entity
14@Data
15@PrimaryKeyJoinColumn(name = "payment_id")
16@Table(name="online")
17public class Online extends Payment {
18
19 @Column(nullable = false, unique = true)
20 private String card_number;
21
22}
Note: See TracBrowser for help on using the repository browser.