Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2016
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. @Entity
  2. public class Phone {
  3.  
  4. @Id
  5. @GeneratedValue(strategy = GenerationType.IDENTITY)
  6. private Long id;
  7.  
  8. @Column(name = "number")
  9. private Long number;
  10.  
  11. @Column(name = "contactId")
  12. private Long contactId;
  13.  
  14. public Long getContactId() {
  15. return contactId;
  16. }
  17.  
  18. public void setContactId(Long contactId) {
  19. this.contactId = contactId;
  20. }
  21.  
  22. public Long getId() {
  23. return id;
  24. }
  25.  
  26. public Long getNumber() {
  27. return number;
  28. }
  29.  
  30. public void setId(Long id) {
  31. this.id = id;
  32. }
  33.  
  34. public void setNumber(Long number) {
  35. this.number = number;
  36. }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement