Questions tagged as 'spring-jpa'

1
answer

Spring Data JPA - Query via Specification - ManyToMany and Join with Multiple Entities

Hello, I've assembled the following class Specification: public class ItemVendedorSpecification implements Specification<ItemVendedor> { private static final long serialVersionUID = 1L; @Autowired CategoriaRepository catego...
asked by 22.05.2018 / 16:01
2
answers

Error creating bean with name 'entityManagerFactory' defined in class path resource

Good evening, I have an application using Spring boot 1.5.10. I am trying to connect to the oracle database, but I always have the title error. Attempts: I have already returned the version of spring boot (which stopped giving the erro...
asked by 06.02.2018 / 03:56
1
answer

JPA entity generating column with double name id_municipio_id_municipio

I have an entity called districts that contains a relationship with the municipalities table. When I generate the database the table districts creates the field id_municipio_id_municipio being that was to be generated only id_municipality. cl...
asked by 28.09.2017 / 15:34
2
answers

Paging with spring data

I have a list of clients per vendor and I'm trying to create a paging to show 10 and 10 clients on my modal in PHP. If anyone can help me thank you, because I'm still not good at spring data. Below is my repository: import java.util.List;...
asked by 12.07.2017 / 14:36
1
answer

Error Resolving Template "MeuTemplate", template might not exist or might not be accessible by any of the configured Resolvers SPRING Template

Performing an ajax request function buscarDisciplina(){ var codigoDisciplina = String($("#codigo").val()); $.ajax({ url: urlApplication+"/grade-curricular/buscar-disciplina/"+codigoDisciplina, type: 'GET...
asked by 20.04.2017 / 16:13
1
answer

Persistence with Spring and Thymeleaf in multiple tables in the same form

I have another vision How can I pass two objects in the ModelAndView so that when calling a save request, I can do this distribution of objects for each Entyti. I have Entyti Client and Contact, in page I need to save the past values, bein...
asked by 03.12.2018 / 19:31
1
answer

How do I retune the amount of Spring JPA records? [duplicate]

I want to return the value of playlists records in the database, but that code did not work. public interface PlaylistDao extends JpaRepository<Playlist, Long> { @Query("select count(*) from Playlist") public int verifi...
asked by 20.11.2018 / 17:04
2
answers

SpringData paging with PageImpl the size does not work

I created a method inside a service class to generate a paged product list using SpringData (Java Spring Rest application), follow the code: public Page<ProdutoDTOVendedor> listarProdutos(String descricao, Boolean disponivel,...
asked by 20.10.2018 / 06:13
0
answers

Error creating tables with relationship and JPA

Hello, I'm trying to create two tables with flyway + Spring + SqlServer + JPA, very simple thing even just to pass the time and I'm having an error that I can not understand because if I execute the same direct in Sql it works. I have the follow...
asked by 25.09.2018 / 16:51
0
answers

JPA failed to initialize a collection of role I can not solve

Well, I'm trying to make a select and I'm just making this mistake, I know what the error means, but these classes are not god's, and FK goes there and then it's in an infinite loop, I do not know what else is missing to work right or if you hav...
asked by 06.09.2018 / 20:50