Skip to content

feat: adding entity reservation for clients #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions src/main/java/com/code/food/entity/ReservationEntity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package com.code.food.entity;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;

import java.time.LocalDateTime;
import java.util.UUID;

@Entity
public class ReservationEntity {

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private UUID id;
private LocalDateTime dateTime;
private String table;
private UserEntity userEntity;

public UUID getId() {
return id;
}

public void setId(UUID id) {
this.id = id;
}

public LocalDateTime getDateTime() {
return dateTime;
}

public void setDateTime(LocalDateTime dateTime) {
this.dateTime = dateTime;
}

public String getTable() {
return table;
}

public void setTable(String table) {
this.table = table;
}

public UserEntity getUserEntity() {
return userEntity;
}

public void setUserEntity(UserEntity userEntity) {
this.userEntity = userEntity;
}
}
Loading