Posts

Showing posts with the label spring-data-jpa

java.lang.IllegalArgumentException: Failed to create query method in a JpaRepository

java.lang.IllegalArgumentException: Failed to create query method in a JpaRepository I use the technologies jpa, hibernate, spring boot - data, api REST. I have the following error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'walletRestService': Unsatisfied dependency expressed through field 'walletRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'walletRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query method public abstract java.lang.Long com.wj.dao.WalletRepository.createWallet(java.lang.Long,java.lang.String)! No property createWallet found for type Wallet! Here is my code : Entity user: package com.wj.entities; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.persistence.Entity; import javax.persistence.FetchType; impo...