-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.java
More file actions
38 lines (35 loc) · 828 Bytes
/
Student.java
File metadata and controls
38 lines (35 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.example.demo.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Student {
@Id
@Column(name="studentId")
private int studentId;
@Column(name="studentName")
private String studentName;
@Column(name="studentAddr")
private String studentAddr;
public Student()
{
}
public int getStudentId() {
return studentId;
}
public void setStudentId(int studentId) {
this.studentId = studentId;
}
public String getStudentName() {
return studentName;
}
public void setStudentName(String studentName) {
this.studentName = studentName;
}
public String getStudentAddr() {
return studentAddr;
}
public void setStudentAddr(String studentAddr) {
this.studentAddr = studentAddr;
}
}