Commit 730430a0 authored by issei.miyajima's avatar issei.miyajima

Merge branch '管理機能(商品新規登録、編集、削除)' into 'master'

管理機能(商品新規登録、編集、削除)

See merge request !39
parents cc6b3015 4cfc5454
package com.example.service; package com.example.service;
import java.util.Collections;
import java.util.List; import java.util.List;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -16,11 +15,12 @@ public class ShoesService { ...@@ -16,11 +15,12 @@ public class ShoesService {
ShoesRepository shoesRepository; ShoesRepository shoesRepository;
public List<Shoes> findAll(){ public List<Shoes> findAll(){
List<Shoes> list = shoesRepository. findAll(); // List<Shoes> list = shoesRepository. findAll();
//並べ替え処理 // //並べ替え処理
//Collections.sort(list, Collections.reverseOrder()); // Collections.sort(list, Collections.reverseOrder());
//並べ替えたものを返す。 // //並べ替えたものを返す。
return list; // return list;
return shoesRepository.findAll();
} }
public Shoes findOne(Integer id){ public Shoes findOne(Integer id){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment