Untitled

mail@pastecode.io avatar
unknown
plain_text
17 days ago
802 B
2
Indexable
Never
package com.edu_manage.education_management.entity;

import java.util.UUID;


import jakarta.persistence.*;
import org.springframework.stereotype.Component;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;


@Entity
@Table(name = "student")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student  {


    @Id
    @Column(name = "user_id")
    private UUID userId;


    @OneToOne
    @JoinColumn(name = "ems_user_id", referencedColumnName = "user_id")
    private EMSUser user;

    private String departmentName;

    private String name;
    private String email;
    private String batchNo;

    @ManyToOne
    @JoinColumn(name = "advisor_id")
    private Teacher advisor;



}
Leave a Comment