package org.example.seed.entity;

import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import org.example.seed.catalog.TelephoneType;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by PINA on 28/05/2017.
 */
@Data
@Entity
@Table(name = "t_telephone")
public class TelephoneEntity implements Serializable {

  @Id
  @Column(name = "id", length = 36, nullable = false, updatable = false)
  private String id;

  @ManyToOne(fetch = FetchType.LAZY)
  @JoinColumn(name = "fk_id_chef")
  @Getter(AccessLevel.NONE)
  private ChefEntity chef;

  @Column(name = "name", length = 15)
  private String name;

  @Column(name = "lada", length = 5)
  private String lada;

  @Column(name = "number", length = 15)
  private String number;

  @Column(name = "type", length = 10)
  @Enumerated(EnumType.STRING)
  private TelephoneType type;
}

@@ -45,61 +45,9 @@
 bok.
-AccessLevel;%0Aimport lombok.Data;%0Aimport lombok.Getter
+*
 ;%0Aim
@@ -206,16 +206,64 @@
 @Entity%0A
+@Builder%0A@NoArgsConstructor%0A@AllArgsConstructor%0A
 @Table(n
@@ -720,33 +720,33 @@
 ber%22, length = 1
-5
+2
 )%0A  private Stri

modify size attribute