source: src/main/java/com/example/villadihovo/model/users/Chef.java@ f7c05a1

Last change on this file since f7c05a1 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: 547 bytes
Line 
1package com.example.villadihovo.model.users;
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@Entity
12@AllArgsConstructor
13@NoArgsConstructor
14@Data
15@PrimaryKeyJoinColumn(name = "user_id")
16@Table(name="chef")
17public class Chef extends UserTable {
18
19 @Column(nullable=false)
20 private int shift;
21
22 @Column(nullable=false)
23 private float salary;
24}
Note: See TracBrowser for help on using the repository browser.