32 lines
680 B
Java
Raw Normal View History

2019-11-15 16:52:21 +01:00
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<at.technikumwien.movies.Movies> movies
}