ошибка: "'Basic' attribute type should not be 'String[]'"
Почему-то подчеркивает красным String[] и пишет ошибку: "'Basic' attribute type should not be 'String[]'". Раньше создавал, такой ошибки не возникала, в чём может быть проблема?
@Entity
@Table(name = "recipe")
public class Recipe {
@Id
private long id;
@Column(name = "name")
private String name;
private String description;
private String[] ingredients;
private String[] directions;
public Recipe(long id, String name, String description, String[] ingredients, String[] directions) {
this.id = id;
this.name = name;
this.description = description;
this.ingredients = ingredients;
this.directions = directions;
}
}

