package at.technikumwien.movies; import lombok.*; import javax.persistence.*; @Data @NoArgsConstructor @AllArgsConstructor @Entity @Table(name = "t_studios") public class Studios { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @Column(length = 100, nullable = false) private String name; private String countrycode; private String postcode; public Studios(String name, String countrycode, String postcode) { this(null, name, countrycode, postcode); } //TODO consider using //@ManyToMany(mappedBy = 'at.technikumwien.movies.Studios') //private List movies }