📜  存储库查询 spring boot - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:19.263000             🧑  作者: Mango

代码示例3
@Query("SELECT u FROM User u WHERE u.status = :status and u.name = :name")
User findUserByUserStatusAndUserName(@Param("status") Integer userStatus, 
  @Param("name") String userName);