1
Files
lecture-professional-softwa…/src/main/java/mops/gruppen2/persistance/EventRepository.java
Christoph 3aefe2f2b3 test
2020-04-16 02:09:15 +02:00

20 lines
556 B
Java

package mops.gruppen2.persistance;
import mops.gruppen2.persistance.dto.EventDTO;
import org.springframework.data.jdbc.repository.query.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface EventRepository extends CrudRepository<EventDTO, Long> {
// ####################################### EVENT DTOs ########################################
@Query("SELECT * FROM heroku_f6ff902475fc2fa")
List<EventDTO> findAllEvents();
}