Config worksgit add .git add .

This commit is contained in:
Filip Izydorczyk
2020-08-08 00:08:36 +02:00
parent 2f63d05c6c
commit ac0851ae29
3 changed files with 42 additions and 14 deletions

View File

@ -9,6 +9,6 @@ import org.springframework.stereotype.Repository;
@Repository
public interface GroupRepository extends JpaRepository<Groups, Long> {
@Query(value = "SELECT * FROM groups WHERE name = :name AND surname = :surname AND title = :title ", nativeQuery = true)
@Query(value = "SELECT * FROM groups WHERE time = :time AND room = :room AND capacity = :capacity ", nativeQuery = true)
Groups find(@Param("time") int time, @Param("room") String room, @Param("capacity") int capacity);
}