package com.example;

import org.hibernate.validator.constraints.NotEmpty;

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

@Entity
@Table(name = "user")
public class User {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private long id;

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

  @NotEmpty
  @Column(name = "occupation")
  private String occupation;

  @NotEmpty
  @Column(name = "google")
  private String google;


  public long getId(){
    return id;
  }

  public void setId(long id){
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getOccupation() {
    return occupation;
  }

  public void setOccupation(String occupation) {
    this.occupation = occupation;
  }


  public String getGoogle() {
    return google;
  }

  public void setGoogle(String google) {
    this.google = google;
  }

}


@@ -73,41 +73,8 @@
 y;%0A%0A
-import javax.persistence.Column;%0A
 impo
@@ -217,70 +217,16 @@
 Id;%0A
-import javax.persistence.Table;%0A%0A@Entity%0A@Table(name = %22user%22)
+%0A@Entity
 %0Apub
@@ -339,33 +339,8 @@
 pty%0A
-  @Column(name = %22name%22)%0A
   pr
@@ -375,39 +375,8 @@
 pty%0A
-  @Column(name = %22occupation%22)%0A
   pr
@@ -417,35 +417,8 @@
 pty%0A
-  @Column(name = %22google%22)%0A
   pr
@@ -800,17 +800,16 @@
 n;%0A  %7D%0A%0A
-%0A
   public

check 1