Skip to content

Commit

Permalink
Student
Browse files Browse the repository at this point in the history
  • Loading branch information
Vihangi98 committed Sep 16, 2021
1 parent f8007f2 commit 6c2685e
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions src/main/java/com/example/StudentReg/domain/Student.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package com.example.StudentReg.domain;

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

@Entity
public class Student {

@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
private Long id;
private String studentname;
private String course;
private int fee;
public Student() {
super();
// TODO Auto-generated constructor stub
}
public Student(Long id, String studentname, String course, int fee) {
super();
this.id = id;
this.studentname = studentname;
this.course = course;
this.fee = fee;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getStudentname() {
return studentname;
}
public void setStudentname(String studentname) {
this.studentname = studentname;
}
public String getCourse() {
return course;
}
public void setCourse(String course) {
this.course = course;
}
public int getFee() {
return fee;
}
public void setFee(int fee) {
this.fee = fee;
}


}

0 comments on commit 6c2685e

Please sign in to comment.