Class StackService

java.lang.Object
balu.pizza.webapp.services.StackService

@Service @Transactional(readOnly=true) public class StackService extends Object
Stack item Service
  • Constructor Details

    • StackService

      @Autowired public StackService(StacksRepository stacksRepository)
  • Method Details

    • create

      public StackItem create(StackItem stackItem)
      Writing a new Stack entity to the database
      Parameters:
      stackItem -
      Returns:
      saved Stack item
    • findAllSorted

      public List<StackItem> findAllSorted(String sortBy)
      Searches all Stack items
      Parameters:
      sortBy - sorting parameter
      Returns:
      Sorted list of stack items
    • findAll

      public List<StackItem> findAll()
      Searches all Stack items
      Returns:
      List of stack items