-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFoodResource.java
More file actions
32 lines (23 loc) · 925 Bytes
/
FoodResource.java
File metadata and controls
32 lines (23 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.example.foodapi.model;
import jakarta.persistence.*;
@Entity
public class FoodResource {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
private String address;
private String type; // e.g. "Food Bank", "Soup Kitchen"
private String hours;
// Getters and Setters
public Long getId() { return id; }
public void setId(Long id) { this.id = id; }
public String getName() { return name; }
public void setName(String name) { this.name = name; }
public String getAddress() { return address; }
public void setAddress(String address) { this.address = address; }
public String getType() { return type; }
public void setType(String type) { this.type = type; }
public String getHours() { return hours; }
public void setHours(String hours) { this.hours = hours; }
}