@@ -0,0 +1,957 @@
+package bg.car_wash.entities;%0A%0Aimport javax.persistence.*;%0Aimport java.util.List;%0A%0A@Entity%0A@Table(name = %22activities%22)%0Apublic class Activity %7B%0A%0A%09@Id%0A%09@GeneratedValue(strategy = GenerationType.IDENTITY)%0A%09private Long id;%0A%0A%09@Column(name = %22service_name%22, nullable = false)%0A%09private String serviceName;%0A%0A%09@ManyToMany(cascade = CascadeType.ALL, targetEntity = Service.class)%0A%09private List%3CService%3E services;%0A%0A%09@ManyToMany%0A%09private List%3CCar%3E car;%0A%0A%09public Activity() %7B%0A%09%7D%0A%0A%09public Long getId() %7B%0A%09%09return id;%0A%09%7D%0A%0A%09public void setId(Long id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%0A%09public String getServiceName() %7B%0A%09%09return serviceName;%0A%09%7D%0A%0A%09public void setServiceName(String serviceName) %7B%0A%09%09this.serviceName = serviceName;%0A%09%7D%0A%0A%09public List%3CService%3E getServices() %7B%0A%09%09return services;%0A%09%7D%0A%0A%09public void setServices(List%3CService%3E services) %7B%0A%09%09this.services = services;%0A%09%7D%0A%0A%09public List%3CCar%3E getCar() %7B%0A%09%09return car;%0A%09%7D%0A%0A%09public void setCar(List%3CCar%3E car) %7B%0A%09%09this.car = car;%0A%09%7D%0A%7D%0A

add activity entity