Untitled

mail@pastecode.io avatar
unknown
plain_text
8 months ago
860 B
4
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 String 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