From 6c2685e6351f9953035bde978a65a7acb65c3f51 Mon Sep 17 00:00:00 2001 From: Vihangi98 Date: Thu, 16 Sep 2021 22:52:32 +0530 Subject: [PATCH] Student --- .../example/StudentReg/domain/Student.java | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/main/java/com/example/StudentReg/domain/Student.java diff --git a/src/main/java/com/example/StudentReg/domain/Student.java b/src/main/java/com/example/StudentReg/domain/Student.java new file mode 100644 index 0000000..10fda2d --- /dev/null +++ b/src/main/java/com/example/StudentReg/domain/Student.java @@ -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; + } + + +}