我有这个:
@Entity
data class Equipment(
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
val id: Int?,
val serialNumber: String?,
@ManyToOne
var manufacturer: Manufacturer? = null
)
我有回购协议:
@RepositoryRestResource(collectionResourceRel = "equipment", path = "equipment")
interface EquipmentRepository : PagingAndSortingRepository<Equipment, Int>
在进行rest调用(而不是/除了包含指向repo的链接的\u链接之外)时,如何强制repo加载manufacturer属性?
查询设备库时,如何按manufacturer.name订购?
暂无答案!
目前还没有任何答案,快来回答吧!