Class AcmeOrderServiceImpl

    • Constructor Detail

      • AcmeOrderServiceImpl

        public AcmeOrderServiceImpl​(AcmeOrderRepository acmeOrderRepository)
    • Method Detail

      • save

        public AcmeOrder save​(AcmeOrder acmeOrder)
        Save a acmeOrder.
        Specified by:
        save in interface AcmeOrderService
        Parameters:
        acmeOrder - the entity to save.
        Returns:
        the persisted entity.
      • findAll

        @Transactional(readOnly=true)
        public List<AcmeOrder> findAll()
        Get all the acmeOrders.
        Specified by:
        findAll in interface AcmeOrderService
        Returns:
        the list of entities.
      • findOne

        @Transactional(readOnly=true)
        public Optional<AcmeOrder> findOne​(Long id)
        Get one acmeOrder by id.
        Specified by:
        findOne in interface AcmeOrderService
        Parameters:
        id - the id of the entity.
        Returns:
        the entity.
      • delete

        public void delete​(Long id)
        Delete the acmeOrder by id.
        Specified by:
        delete in interface AcmeOrderService
        Parameters:
        id - the id of the entity.