我尝试使用谓词和get方法,但我无法实现它 CriteriaQuery<Starextends Y>, Y, Y) of type CriteriaBuilder is not applicable for the arguments (Expression<Integer>, Dateextends Y>) in the type CriteriaBuilder i
我使用CriteriaBuilder创建一个返回MyOwnEntitiy列表的查询。在我的实体中,我有一个@Id,它的类型是Long,但当id为'%3%‘时,我需要查询该实体。在普通sql中,我有几个选项:select * from MyOwnTable whereid::text like '%3'
select * from MyOwnTab