不必要にあった追加箇所を削除
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package com.example.demo.repository;
|
package com.example.demo.repository;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
|
||||||
|
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
@@ -26,7 +25,4 @@ public interface Book_CollectionRepository extends JpaRepository<Book_collection
|
|||||||
@Param("nmBook") String nmBook,
|
@Param("nmBook") String nmBook,
|
||||||
@Param("pubLisher") String pubLisher,
|
@Param("pubLisher") String pubLisher,
|
||||||
@Param(" noteText") String noteText);
|
@Param(" noteText") String noteText);
|
||||||
|
|
||||||
//findByIDメソッドを明記しデータベースの主キーを指定、entity取得
|
|
||||||
Optional<Book_collectionEntity>findById(Integer id);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user