Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
50 lines
881 B
Java
50 lines
881 B
Java
package com.example.fercoganbackend.entity;
|
|
|
|
import jakarta.persistence.*;
|
|
|
|
// Cabaña
|
|
@Entity
|
|
@Table(name = "cabanas")
|
|
public class Cabana {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
private String nombre;
|
|
private Integer Telefono;
|
|
private Boolean visible = true;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Integer getTelefono() {
|
|
return Telefono;
|
|
}
|
|
|
|
public void setTelefono(Integer telefono) {
|
|
Telefono = telefono;
|
|
}
|
|
|
|
public String getNombre() {
|
|
return nombre;
|
|
}
|
|
|
|
public void setNombre(String nombre) {
|
|
this.nombre = nombre;
|
|
}
|
|
|
|
public Boolean getVisible() {
|
|
return visible;
|
|
}
|
|
|
|
public void setVisible(Boolean visible) {
|
|
this.visible = visible;
|
|
}
|
|
}
|
|
|