jpa 方法命名规则查询 findAllBy 和 findBy
//该种命名方式需要自己写JPQL @Query("select d from Device d where d.deviceCode in ?1") List<Device> findAllByDeviceCode(List<String> deviceCodes); //方法命名规则查询,如果入参想要是List,必须带 In List<Device> findAllByDeviceCodeIn(List<String&...
原创
2020-08-17 18:04:16 ·
8272 阅读 ·
2 评论