get Real Customers: fix findByActive

This commit is contained in:
Bossanyi Tibor
2020-05-16 11:28:51 +02:00
parent c2b2a68ce6
commit b5a8727d60
3 changed files with 24 additions and 7 deletions
@@ -5,6 +5,6 @@ import org.springframework.data.jpa.repository.Query
import org.springframework.data.repository.query.Param
interface CustomerService {
@Query("FROM customer WHERE active = :active")
fun findRealCustomers(@Param("active") active: String): List<Customer>
@Query("FROM customer WHERE active = :active ")
fun findByActive(@Param("active") active: String? ): List<Customer>
}