package com.theaccountant.accountabilityhack.data;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import java.math.BigDecimal;

@Builder
@Data
@Entity
@Table(name = "schools")
@NoArgsConstructor
@AllArgsConstructor
public class SchoolEntry {

    @Id
    @GeneratedValue(generator = "increment")
    @GenericGenerator(name = "increment", strategy = "increment")
    private long id;

    private String brin;
    private Integer bevoegdGezag;
    private String name;

    @OneToOne(fetch = FetchType.LAZY,  cascade = CascadeType.ALL)
    private Address address;
    @OneToOne(fetch = FetchType.LAZY,  cascade = CascadeType.ALL)
    private Coordinate geo;

    private Integer totaalAantalLeerlingen;

    private BigDecimal fteDirectie;
    private BigDecimal fteLeerkrachten;
    private BigDecimal fteInOpleiding;
    private BigDecimal fteOndersteunend;
    private BigDecimal fteOnbekend;

    private BigDecimal bekostigingPersoneel;
    private BigDecimal bekostigingDirectie;
    private BigDecimal bekostigingOverig;
}

@@ -151,24 +151,48 @@
 onstructor;%0A
+import lombok.ToString;%0A
 import org.h
@@ -596,14 +596,30 @@
 tor%0A
-public
+@ToString%0Apublic final
  cla

Add debug info.