Advertisement
AmirAlSadi

Course.java

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