Questions tagged as 'spring-data'

0
answers

No qualifying bean of type [br.com.spring.JPA.Service.PostService] found for dependency

Can anyone help me with this error? No qualifying bean of type [br.com.spring.JPA.Service.PostService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org...
asked by 19.07.2018 / 02:21
1
answer

JPQL Not recognizing the parameter

I need to perform a query using JPQL or Spring-date keyword method. The problem is that the parameter entered in the query is being ignored, I still can not identify the cause of it. As the findByDescricão method is ignoring the parameter (de...
asked by 24.04.2018 / 10:35
1
answer

How to use SQL instead of JPQL?

This week I had a problem, I was able to build a Java API using JPQL , but my Java API is not yet complete and I can already predict that in the future my project will need reporting, imagine doing in JPQL? It's going to be a hell of a lot!...
asked by 09.03.2018 / 13:37
2
answers

Specification with Spring Data Jpa passing null parameter

I'm using Specifications Spring Data JPA, but I'm having a hard time! By not passing any parameters in the two fields I want it to return all records to me. But when doing the query it is returning me only those that have the respective two null...
asked by 28.02.2018 / 13:50
1
answer

@Autowired does not work with my service

I always run the method that accesses what is in another class with @Autowired it becomes null, follow the code below: @Component public class TokenAuthenticationService { @Autowired UserRoleServiceSecurity service; ... void a...
asked by 26.01.2018 / 21:55
0
answers

How to send Sort seen URL in native paging query?

The structure below works perfectly, but when I send in the input and pagination data the sort command of the Sql error, what do I need to put in the query to accept the sort by the field I want? I am sending this data via URL: dadosEntrada...
asked by 21.11.2017 / 20:38
1
answer

Pass native query per parameter to JpaRepository Interface

I need to create an interface that extends the JpaRepository where I want to pass a native (select) query per parameter instead of leaving static within the @Query annotation. Instead of using @Query(value = "select * from a where a =...
asked by 11.05.2017 / 22:08
1
answer

Access the service layer from the controller

Hello, I'm developing a REST web service that queries data from Apache Solr. I'm using Spring boot + date with Solr repositories. I do not know how to interconnect the service, repository, and controller layers. I have the following struct...
asked by 24.04.2017 / 19:04
1
answer

How to group and aggregate child items in MongoDB?

I'm developing a Web Services REST application with Spring Boot and need to group the goals by players in order to show the scorers from the following records: [ { "id": 1, "adversario": "Dois irmãos", "dataRealizacao": "2017-02-...
asked by 13.02.2017 / 20:20
0
answers

Integration between SpringSecurity and SpringData to use SpEL

Good afternoon I'm creating a routine where I need to use Spel to access Authentication data directly in the SpringData @Query, I followed the SpringData tutorial itself to perform the configuration: SpringData with SpEL After followi...
asked by 13.12.2016 / 17:08