Advertisement
AmirAlSadi

SCMapping.java

May 27th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package it.unibo.tw.hibernate;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class SCMapping implements Serializable {
  6.  
  7. private static final long serialVersionUID = 1L;
  8.  
  9. private Course course;
  10. private Student student;
  11.  
  12. public SCMapping() {
  13. this.course=new Course();
  14. this.student= new Student();
  15. }
  16.  
  17.  
  18. public Course getCourse() {
  19. return course;
  20. }
  21.  
  22. public void setCourse(Course course) {
  23. this.course = course;
  24. }
  25.  
  26. public Student getStudent() {
  27. return student;
  28. }
  29.  
  30. public void setStudent(Student student) {
  31. this.student = student;
  32. }
  33.  
  34.  
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement