123456789101112131415161718192021222324252627282930313233343536 |
- package com.sf.entity;
- import org.springframework.context.annotation.Scope;
- /**
- * student的实体类
- */
- public class Student extends User{
- /**
- * 性别
- */
- private String gender;
- public Student() {
- }
- public Student(String gender) {
- this.gender = gender;
- }
- public String getGender() {
- return gender;
- }
- public void setGender(String gender) {
- this.gender = gender;
- }
- @Override
- public String toString() {
- return "Student{" +
- "gender='" + gender + '\'' +
- '}';
- }
- }
|