backend con panel admin funcional
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled
This commit is contained in:
86
src/main/java/com/example/fercoganbackend/entity/Puja.java
Normal file
86
src/main/java/com/example/fercoganbackend/entity/Puja.java
Normal file
@@ -0,0 +1,86 @@
|
||||
package com.example.fercoganbackend.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
// Puja
|
||||
@Entity
|
||||
@Table(name = "pujas")
|
||||
public class Puja {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
private LocalDateTime fecha;
|
||||
private Double monto;
|
||||
private Boolean visible;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "usuario_id")
|
||||
private Usuario usuario; // ya lo tienes
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "cabana_id")
|
||||
private Cabana cabana;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "lote_id")
|
||||
private Lote lote;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public LocalDateTime getFecha() {
|
||||
return fecha;
|
||||
}
|
||||
|
||||
public void setFecha(LocalDateTime fecha) {
|
||||
this.fecha = fecha;
|
||||
}
|
||||
|
||||
public Double getMonto() {
|
||||
return monto;
|
||||
}
|
||||
|
||||
public void setMonto(Double monto) {
|
||||
this.monto = monto;
|
||||
}
|
||||
|
||||
public Boolean getVisible() {
|
||||
return visible;
|
||||
}
|
||||
|
||||
public void setVisible(Boolean visible) {
|
||||
this.visible = visible;
|
||||
}
|
||||
|
||||
public Usuario getUsuario() {
|
||||
return usuario;
|
||||
}
|
||||
|
||||
public void setUsuario(Usuario usuario) {
|
||||
this.usuario = usuario;
|
||||
}
|
||||
|
||||
public Cabana getCabana() {
|
||||
return cabana;
|
||||
}
|
||||
|
||||
public void setCabana(Cabana cabana) {
|
||||
this.cabana = cabana;
|
||||
}
|
||||
|
||||
public Lote getLote() {
|
||||
return lote;
|
||||
}
|
||||
|
||||
public void setLote(Lote lote) {
|
||||
this.lote = lote;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user