package ru.ulstu.is.cbapp.models;

import javax.persistence.*;

@Entity
@Table(name = "StudentCategory")
public class StudentCategory {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @ManyToOne
    private Student student;

    @ManyToOne
    private Category category;

    public StudentCategory(Student student, Category Category) {
        this.student = student;
        this.category = category;
    }

    public StudentCategory() {
    }

    public Long getId() {
        return id;
    }

}
