Skip to content

Instantly share code, notes, and snippets.

@singh1114
Last active October 19, 2019 13:44
Show Gist options
  • Save singh1114/bf5ca2f2f1bfbbf5daeb78f09f56260f to your computer and use it in GitHub Desktop.
Save singh1114/bf5ca2f2f1bfbbf5daeb78f09f56260f to your computer and use it in GitHub Desktop.
package io.singh1114.springboottut.school;
import javax.persistence.*;
@Entity
public class School {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name="id")
private long id;
private String name;
private String principle;
private String address;
public School() {
}
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 getPrinciple() {
return principle;
}
public void setPrinciple(String principle) {
this.principle = principle;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public School(long id, String name, String principle, String address) {
super();
this.id = id;
this.name = name;
this.principle = principle;
this.address = address;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment