refactor: minor style improvements
This commit is contained in:
parent
5112c83379
commit
7ad6fb1dee
5 changed files with 7 additions and 10 deletions
|
@ -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<Expense, Long>, JpaSpecificationExecutor<Expense> {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -34,8 +34,8 @@ public class ExpenseService {
|
|||
}
|
||||
public List<Expense> 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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -60,9 +60,8 @@ public class MainLayout extends AppLayout {
|
|||
}
|
||||
|
||||
private Footer createFooter() {
|
||||
Footer layout = new Footer();
|
||||
|
||||
return layout;
|
||||
return new Footer();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue