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 | |
---|
1 | package com.example.villadihovo.model.attempts;
|
---|
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 | @Data
|
---|
10 | @Entity
|
---|
11 | @AllArgsConstructor
|
---|
12 | @NoArgsConstructor
|
---|
13 | @Table(name="log_in")
|
---|
14 | public 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.