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:
567 bytes
|
Rev | Line | |
---|
[f7c05a1] | 1 | package com.example.villadihovo.model.users;
|
---|
| 2 |
|
---|
| 3 | import jakarta.persistence.Column;
|
---|
| 4 | import jakarta.persistence.Entity;
|
---|
| 5 | import jakarta.persistence.PrimaryKeyJoinColumn;
|
---|
| 6 | import jakarta.persistence.Table;
|
---|
| 7 | import lombok.AllArgsConstructor;
|
---|
| 8 | import lombok.Data;
|
---|
| 9 | import lombok.NoArgsConstructor;
|
---|
| 10 |
|
---|
| 11 | @Data
|
---|
| 12 | @Entity
|
---|
| 13 | @AllArgsConstructor
|
---|
| 14 | @NoArgsConstructor
|
---|
| 15 | @PrimaryKeyJoinColumn(name = "user_id")
|
---|
| 16 | @Table(name="receptionist")
|
---|
| 17 | public class Receptionist extends UserTable
|
---|
| 18 | {
|
---|
| 19 | @Column(nullable = false)
|
---|
| 20 | private int shift;
|
---|
| 21 |
|
---|
| 22 | @Column(nullable = false)
|
---|
| 23 | private float salary;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.