package com.progetto.VEBS.model.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Type;
import org.locationtech.jts.geom.Geometry;

@Entity
@Table(name = "poligono_area_verde")
public class PoligonoAreaVerde {

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id_poligono;

    @Column(name = "nome")
    private String nome;

    @Column(name = "densità_alberi")
    private Integer densita_alberi;

    @Column(name = "geometria", columnDefinition = "geometry(Polygon, 3857)")
    private Geometry geometria;
    
    @Column(name = "area")
    private Double area;
    


    public void PoligonoAreaVerde() {}

    // Getter e Setter
    public Integer getId() {
        return id_poligono;
    }

    public void setId(Integer id_poligono) {
        this.id_poligono = id_poligono;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public Integer getDensita() {
        return densita_alberi;
    }

    public void setDensita(Integer densita_alberi) {
        this.densita_alberi = densita_alberi;
    }

    public Geometry getGeometry() {
        return geometria;
    }

    public void setGeometry(Geometry geometria) {
        this.geometria = geometria;
    }

    public Double getArea() {
        return area;
    }

    public void setArea(Double area) {
        this.area = area;
    }
	
}
