次ã®ã¹ãããã¯ãããªãã®ãã¸ãã¹è¦æ±ãæããã¤ã³ã¿ã¼ãã§ã¼ã¹ã¸ã®ã¯ã¨ãªç¨ã®ã¡ã½ããã追å ãããã¨ã§ããã List findByUsername(String username); ãããè¦ãã¨ãã¯ã¨ãªãã¡ã½ããããã©ã®ããã«çæãããã®ããã¨ããçåãåºã¦ããã ãããããããªããæ´ã«ã¡ã¿ãã¼ã¿ã追å ããªããã°ã{entity}.{method-name}å½¢å¼ã® JPA named queryãæ¢ããããã°ãããã使ããããè¦ã¤ãããªãå ´åã¯ãã¡ã½ããåããã¼ã¹ãã¦ãããããã¯ã¨ãªãçæãããã¨ãããåã®ä¾ã§ã¯ select u from User u where u.username = ?ãã¡ãããã¯ã¨ãª ãã¼ãµã¼ã¯ããã£ã¨å¤ãã®ãã¼ã¯ã¼ãããµãã¼ããã¦ãããæ´ã«ã¯ãåèããã¥ã¡ã³ããè¦ã¦æ¬²ããã ããããã¥ã¢ã«ã§ã¯ã¨ãªãå®ç¾©ããããªããHadesã® @Query ã¢ããã¼ã·ã§ã³ã使ã£
{{#tags}}- {{label}}
{{/tags}}