Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一意の (この例では電子メール) フィールドでエンティティを検索したいと考えています。
User id (int, pk) email (string, not null, unique) password (string, not null)
リポジトリ用があることは知っていfindByますが、電子メール フィールドが一意であるため、結果が常に 1 つしかないため、リポジトリを使用したくありません。
findBy
これは可能ですか?
を使用して行うことができますfindOneBy
findOneBy