All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.praegus.travels.model.Camping Maven / Gradle / Ivy

The newest version!
package com.praegus.travels.model;

import javax.persistence.*;

@Entity
public class Camping {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String name;
    private String location;
    private Integer stars;

    private Double price;

    @Column(columnDefinition = "TEXT")
    private String description;

    public Camping() {
    }

    public Camping(Long id, String name, String location, Integer stars, Double price, String description) {
        this.id = id;
        this.name = name;
        this.location = location;
        this.stars = stars;
        this.price = price;
        this.description = description;
    }

    public Long getId() {
        return id;
    }

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

    public Integer getStars() {
        return stars;
    }

    public void setStars(Integer stars) {
        this.stars = stars;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy