Exercise.getAllByCustomerId fix, HTTP test

This commit is contained in:
Bossanyi Tibor
2020-05-12 16:14:52 +02:00
parent 5a4dda676b
commit 17183bda07
6 changed files with 19 additions and 9 deletions
@@ -5,6 +5,6 @@ import org.springframework.data.jpa.repository.Query
import org.springframework.data.repository.query.Param
interface ExerciseService {
@Query("FROM Exercises WHERE customer_id = :customerId")
fun findAllByCustomerId( @Param("customerId") customerId: Long): List<Exercises>
@Query("FROM exercises WHERE customer_id = :customerId")
fun findAllByCustomerId( @Param("customerId") customerId: Long? ): List<Exercises>
}