source: src/main/java/com/example/villadihovo/model/attempts/LogIn.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: 724 bytes
Line 
1package com.example.villadihovo.model.attempts;
2
3import com.example.villadihovo.model.users.UserTable;
4import jakarta.persistence.*;
5import lombok.AllArgsConstructor;
6import lombok.Data;
7import lombok.NoArgsConstructor;
8
9@Data
10@Entity
11@AllArgsConstructor
12@NoArgsConstructor
13@Table(name="log_in")
14public class LogIn {
15
16 @Id
17 @GeneratedValue(strategy = GenerationType.IDENTITY)
18 private int login_id;
19
20 @Column(nullable = false)
21 private String vreme_na_najava;
22
23 @ManyToOne
24 @JoinColumn(name = "user_id", nullable = false)
25 private UserTable user_id;
26
27 public LogIn(String vreme_na_najava, UserTable user_id) {
28 this.vreme_na_najava = vreme_na_najava;
29 this.user_id = user_id;
30 }
31}
Note: See TracBrowser for help on using the repository browser.