У меня проблема с отношениями oneToMany.Я создал таблицы в БД SQLite, это мои таблицы: 
Моя категорияМодель:
@Entity
@Table(name = "Category")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class CategoryModel {
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;
private String category_name;
private String category_description;
private String image_path;
@JsonIgnore
@OneToMany( mappedBy = "category")
private Set<ProductModel> category;
Моя ProducCategory:
@Entity
@Table(name = "Product_Category")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class ProductModel {
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.AUTO)
private Long product_id;
private Long category_id;
private String name;
private String description;
private int numberOfProduct;
private String image;
private int price;
@ManyToOne
@JoinColumn(name = "country_id", nullable = false)
private CategoryModel category;
Я могу получить данные из таблицы Category
, но когда я вызываю данные из таблицы Product_Category, у меня появляется ошибка:
SQL error or missing database (no such column: productmod0_.country_id)