package jwd.wafepa.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import jwd.wafepa.model.Activity;

@Repository
public interface ActivityRepository extends
	JpaRepository<Activity,Long> {
	// postoje nazivi metoda koje spring prepoznaje
	@Query("select a from Activity a where a.name = :name")
	List<Activity> findByName(@Param("name")String name);

}
