在Repositories中的Rest Spring API中,我需要通过三个参数来查找值,但这是phone,password,找到delete = 0。我已经将它添加到实体,但它显示错误无效的派生查询!找不到类型为CustomerEntity的属性!两个现场工作正常,但删除的工作不Spring Rest Repository Error
@Repository
public interface CustomerRepository extends JpaRepository<CustomerEntity, Long> {
CustomerEntity findByfacebookID(String facebookID);
CustomerEntity findByPhoneAndPasswordAndIsDeleted(String phone, String password, Boolean isdeleted);
实体
@Entity
@Table(name = "CUSTOMER")
public class CustomerEntity {
@Column(name = "IS_DELETED", length = 3, nullable = false)
private Boolean isdeleted;
为什么你在属性名称中有一个空格?完全在'私人布尔被删除' – DevDio