| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package com.deliveryproject.easydelivery.Models;
- import javax.persistence.*;
- @Entity
- @Table(name = "packets")
- public class Packet {
- @Id
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Long id;
- @Column(name = "description")
- private String description;
- @Column(name = "name")
- private String name;
- public Packet() {}
- public Packet(String description, String name) {
- this.description = description;
- this.name = name;
- }
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public String getDescription() {
- return description;
- }
- public void setDescription(String description) {
- this.description = description;
- }
- public String getName() {
- return name;
- }
- @Override
- public String toString() {
- return "Packet{" +
- "id=" + id +
- ", description='" + description + '\'' +
- ", name='" + name + '\'' +
- '}';
- }
- public void setName(String name) {
- this.name = name;
- }
- }
|