这是我希望SpringBoot执行的SQL查询:
$("#datepicker").datepicker({
dayNamesMin: $.datepicker._defaults.dayNames, //or dayNamesShort
});
“连接”部分已在实体“ departement.java”中完成:
Select * from Departement
Where Departement.region.libelle like "fr"
在DepartementRepository.java
@ManyToOne (fetch = FetchType.EAGER, optional = false)
@JoinColumn(name = "id_regions", nullable = false) // declarer la foreign key
private Region region;
任何人都知道如何实现这一目标吗?