Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package models;
- import java.util.*;
- import javax.persistence.*;
- @Entity
- @NamedQuery(name="Restaurant.findAll", query="SELECT c FROM restaurants c")
- @Table(name = "restaurants")
- public class Restaurant{
- @Id
- @GeneratedValue
- @Column(name="id")
- public Integer id;
- @Column(name = "restaurantName")
- private String restaurantName;
- @Column(name = "description")
- private String description;
- @Column(name = "latitude")
- private double latitude;
- @Column(name = "longitude")
- private double longitude;
- @Column(name = "mark")
- private int mark;
- @Column(name = "votes")
- private int votes;
- @Column(name = "priceRange")
- private int priceRange;
- @Column(name = "imageFileName")
- private String imageFileName;
- @Column(name = "coverFileName")
- private String coverFileName;
- @Column(name = "location")
- private int location;
- @Column(name = "foodType")
- private String foodType;
- @Column(name = "booked")
- private int booked;
- public Restaurant() {
- }
- public Restaurant(Integer id, String restaurantName, String description, double latitude, double longitude, int mark, int votes, int priceRange, String imageFileName, String coverFileName, int location, String foodType, int booked) {
- this.id = id;
- this.restaurantName = restaurantName;
- this.description = description;
- this.latitude = latitude;
- this.longitude = longitude;
- this.mark = mark;
- this.votes = votes;
- this.priceRange = priceRange;
- this.imageFileName = imageFileName;
- this.coverFileName = coverFileName;
- this.location = location;
- this.foodType = foodType;
- this.booked = booked;
- }
- public Integer getId() {
- return id;
- }
- public String getRestaurantName() {
- return restaurantName;
- }
- public String getDescription() {
- return description;
- }
- public double getLatitude() {
- return latitude;
- }
- public double getLongitude() {
- return longitude;
- }
- public int getMark() {
- return mark;
- }
- public int getVotes() {
- return votes;
- }
- public int getPriceRange() {
- return priceRange;
- }
- public String getImageFileName() {
- return imageFileName;
- }
- public String getCoverFileName() {
- return coverFileName;
- }
- public int getLocation() {
- return location;
- }
- public String getFoodType() {
- return foodType;
- }
- public int getBooked() {
- return booked;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement