package com.rera.mss.model

import javax.persistence.*
import javax.validation.constraints.NotBlank

@Entity
@Table(name="PV_panel_area")
class PvPanelArea (
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        var id: Long = 0,

        @NotBlank
        var area: Float,

        @NotBlank
        var altitude: Float,

        @NotBlank
        var tilt: Float,

        @NotBlank
        var direction: Float,

        @ManyToOne
        @JoinColumn(name="monitored_area_id")
        var monitoredArea: MonitoredArea,

        @ManyToOne
        @JoinColumn(name="pv_panel_id")
        var pvPanel: PvPanel?
) {
}