diff --git a/src/main/java/com/application/munera/repositories/ExpenseRepository.java b/src/main/java/com/application/munera/repositories/ExpenseRepository.java index a227c3a..0e0e586 100644 --- a/src/main/java/com/application/munera/repositories/ExpenseRepository.java +++ b/src/main/java/com/application/munera/repositories/ExpenseRepository.java @@ -2,13 +2,11 @@ package com.application.munera.repositories; import com.application.munera.data.Expense; -import com.application.munera.data.Person; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; -import java.util.Collection; import java.util.Set; public interface ExpenseRepository extends JpaRepository, JpaSpecificationExecutor { diff --git a/src/main/java/com/application/munera/services/CategoryService.java b/src/main/java/com/application/munera/services/CategoryService.java index 539718e..a9dfbb4 100644 --- a/src/main/java/com/application/munera/services/CategoryService.java +++ b/src/main/java/com/application/munera/services/CategoryService.java @@ -26,8 +26,8 @@ public class CategoryService { return categoryRepository.findAll(); } - public Category update(Category category) { - return categoryRepository.save(category); + public void update(Category category) { + categoryRepository.save(category); } public void delete(Category category) { diff --git a/src/main/java/com/application/munera/services/ExpenseService.java b/src/main/java/com/application/munera/services/ExpenseService.java index d63db89..d0393f9 100644 --- a/src/main/java/com/application/munera/services/ExpenseService.java +++ b/src/main/java/com/application/munera/services/ExpenseService.java @@ -34,8 +34,8 @@ public class ExpenseService { } public List findAll() {return repository.findAll();} - public Expense update(Expense entity) { - return repository.save(entity); + public void update(Expense entity) { + repository.save(entity); } public void delete(Long id) { diff --git a/src/main/java/com/application/munera/services/PersonService.java b/src/main/java/com/application/munera/services/PersonService.java index be2685e..94e3557 100644 --- a/src/main/java/com/application/munera/services/PersonService.java +++ b/src/main/java/com/application/munera/services/PersonService.java @@ -31,8 +31,8 @@ public class PersonService { return this.personRepository.findAll(); } - public Person update(Person person) { - return this.personRepository.save(person); + public void update(Person person) { + this.personRepository.save(person); } public void delete(Long id) { diff --git a/src/main/java/com/application/munera/views/MainLayout.java b/src/main/java/com/application/munera/views/MainLayout.java index 6c958cb..98846e0 100644 --- a/src/main/java/com/application/munera/views/MainLayout.java +++ b/src/main/java/com/application/munera/views/MainLayout.java @@ -60,9 +60,8 @@ public class MainLayout extends AppLayout { } private Footer createFooter() { - Footer layout = new Footer(); - return layout; + return new Footer(); } @Override