get Real Customers: fix findByActive + database change
This commit is contained in:
parent
b5a8727d60
commit
ff2c16ea7b
@ -20,6 +20,7 @@ CREATE TABLE IF NOT EXISTS `customer` (
|
|||||||
`email` char(100) DEFAULT NULL,
|
`email` char(100) DEFAULT NULL,
|
||||||
`sex` enum('m','w') DEFAULT 'm',
|
`sex` enum('m','w') DEFAULT 'm',
|
||||||
`age` tinyint DEFAULT NULL,
|
`age` tinyint DEFAULT NULL,
|
||||||
|
`active` enum('Y','N','D','S') DEFAULT 'N',
|
||||||
PRIMARY KEY (`customer_id`)
|
PRIMARY KEY (`customer_id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
|
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
|
||||||
|
|
||||||
|
@ -5,6 +5,6 @@ import org.springframework.data.jpa.repository.JpaRepository
|
|||||||
import org.springframework.stereotype.Repository
|
import org.springframework.stereotype.Repository
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
interface CustomerRepository : JpaRepository<Customer, Long>{
|
interface CustomerRepository : JpaRepository<Customer, Long> {
|
||||||
fun findRealCustomers(active: String):List<Customer>
|
fun findByActive( active: String? ):List<Customer>
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user