2. recipes, stuffs, tobuys, stocks の NotBlankとNotNullを修正dev-backend-stocks
parent
840f236540
commit
44cd5183cd
@ -1,12 +1,25 @@ |
|||||||
|
//--------------------------------
|
||||||
|
// StuffsRepository.java
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// 更新履歴:2025/06/05 新規作成
|
||||||
|
// Copyright(c) 2025 IVIS All rights reserved.
|
||||||
|
//--------------------------------------------
|
||||||
|
|
||||||
package com.example.todoapp.repository; |
package com.example.todoapp.repository; |
||||||
|
|
||||||
import com.example.todoapp.model.Stuffs; |
import com.example.todoapp.model.Stuffs; |
||||||
import org.springframework.data.jpa.repository.JpaRepository; |
import org.springframework.data.jpa.repository.JpaRepository; |
||||||
import org.springframework.stereotype.Repository; |
import org.springframework.stereotype.Repository; |
||||||
|
|
||||||
import java.util.Optional; |
/** |
||||||
|
* 材料 (stuffs) テーブルへのアクセスを行うリポジトリ. |
||||||
|
* <p> |
||||||
|
* このクラスは材料テーブル (stuffs) に対する基本的なCRUD操作を提供します。 |
||||||
|
* Spring Data JPAによって自動的に実装されます。 |
||||||
|
* </p> |
||||||
|
*/ |
||||||
@Repository |
@Repository |
||||||
public interface StuffsRepository extends JpaRepository<Stuffs, Long> { |
public interface StuffsRepository extends JpaRepository<Stuffs, Long> { |
||||||
Optional<Stuffs> findById(Long id); |
// 材料情報を主キーで取得するメソッド(必要に応じて追加)
|
||||||
} |
} |
@ -1,9 +1,23 @@ |
|||||||
|
//--------------------------------
|
||||||
|
// ToBuysRepository.java
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// 更新履歴:2025/06/05 新規作成
|
||||||
|
// Copyright(c) 2025 IVIS All rights reserved.
|
||||||
|
//--------------------------------------------
|
||||||
package com.example.todoapp.repository; |
package com.example.todoapp.repository; |
||||||
|
|
||||||
import com.example.todoapp.model.ToBuys; |
import com.example.todoapp.model.ToBuys; |
||||||
import org.springframework.data.jpa.repository.JpaRepository; |
import org.springframework.data.jpa.repository.JpaRepository; |
||||||
import org.springframework.stereotype.Repository; |
import org.springframework.stereotype.Repository; |
||||||
|
|
||||||
|
/** |
||||||
|
* to_buys テーブルへのアクセスを行うリポジトリ |
||||||
|
* <p> |
||||||
|
* このクラスは to_buys テーブルに対する基本的なCRUD操作を提供します。 |
||||||
|
* Spring Data JPAによって自動的に実装されます。 |
||||||
|
* </p> |
||||||
|
*/ |
||||||
@Repository |
@Repository |
||||||
public interface ToBuysRepository extends JpaRepository<ToBuys, Integer> { |
public interface ToBuysRepository extends JpaRepository<ToBuys, Integer> { |
||||||
} |
} |
Loading…
Reference in new issue