-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
|
||
} |