Repository修正
This commit is contained in:
@@ -16,6 +16,11 @@ public interface Book_CollectionRepository extends JpaRepository<Book_collection
|
||||
//Integer: Entity の主キーの方
|
||||
List<Book_collectionEntity> findByFlgLending(Character flgLending);
|
||||
|
||||
// [ b.noteText ] …Entityのフィールドを表す
|
||||
// [ :noteText ]…Javaから渡された検索条件を表す。ユーザが入力した(Java)などの文字列が入る
|
||||
// [:]…JPQLでは、名前付きパラメータを指定するときに、名前の前に : を付け
|
||||
// └[ : ] 以降の名前は @Param("noteText") の名前と一致させる
|
||||
|
||||
@Query("""
|
||||
SELECT b FROM Book_collectionEntity b
|
||||
WHERE b.flgLending='0'
|
||||
|
||||
Reference in New Issue
Block a user