Untitled
unknown
plain_text
3 years ago
1.4 kB
4
Indexable
package com.foodapp.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="foodproduct") public class FoodProduct { @Id @GeneratedValue(strategy=GenerationType.AUTO) private int id; private String name; private String type; private String about; private String availability; private int price; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getAbout() { return about; } public void setAbout(String about) { this.about = about; } public String getAvailability() { return availability; } public void setAvailability(String availability) { this.availability = availability; } public int getPrice() { return price; } public void setPrice(int price) { this.price = price; } }
Editor is loading...