package com.example.classroomattendance.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Student { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String name; private String studentId; private double points = 0.0; // Constructors, getters and setters public Student() {} public Student(String name, String studentId, double points) { this.name = name; this.studentId = studentId; this.points = points; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getStudentId() { return studentId; } public void setStudentId(String studentId) { this.studentId = studentId; } public double getPoints() { return points; } public void setPoints(double points) { this.points = points; } }