java JPA查找orderById的顶部数据,并按字符串过滤Id
我尝试查找orderById的顶部数据,并按字符串过滤带有“like”的Id。。 我有findFirstByOrderByOrderIdDesc()查找orderBy和findByOrderIdStartsWith(字符串orderPrefix)的顶级数据使用“like”子句筛选数据
因此,在界面中,我尝试将它们组合成如下:
很遗憾,FindFirstByOrderIDdesc(字符串orderPrefix)仍然没有找到“找到ByIDdesc的属性启动”
我的实体:
@Id
@Column(name="order_id", unique = true, nullable = false, updatable = false )
private String orderId;
private String orderPrefix;
谢谢你对我的问题提出的好建议
共 (0) 个答案