Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- public class Phone {
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Long id;
- @Column(name = "number")
- private Long number;
- @Column(name = "contactId")
- private Long contactId;
- public Long getContactId() {
- return contactId;
- }
- public void setContactId(Long contactId) {
- this.contactId = contactId;
- }
- public Long getId() {
- return id;
- }
- public Long getNumber() {
- return number;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public void setNumber(Long number) {
- this.number = number;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement