Questions tagged as 'spring'

2
answers

Extend findAll with custom filters

I'm trying to extend findAll from my JPA repository to make custom filters. I did some research and found some ideas of use with Predicates and related but did not identify something that worked in a practical way. I would like to know if...
asked by 26.05.2015 / 16:16
1
answer

Error when running Spring Roo

I'm trying to install and run Spring Roo. I downloaded it, unzipped it in the opt folder, gave the permissions on the folder, and created the links. But when you run the command "roo" a big error appears and it locks the program having to clo...
asked by 23.08.2014 / 21:01
1
answer

Doubts with dependency injection with Spring (object injected returning null)

Good afternoon everyone. Personally, I have a problem that I should probably be missing or forgetting the order of something. My case is that I have a two controllers. One is DestinationController.java and the other is FileController.java....
asked by 22.08.2014 / 20:11
1
answer

Hibernate: Error trying to persist field that maps foreign key

In my current Spring project, I'm facing the following issues when trying to save an entity that references another (with foreign key), with this: @Entity @Table(name="pagina") public class Pagina { @Id @Column(name = "id") @Gener...
asked by 06.08.2014 / 18:35
2
answers

DB Dynamic MongoDB

I'm starting a web project and I'm thinking of using java with mongoDB and Spring data. In this web project, each user would have their own bank. That is, when the user logs in (this would be a shared bank, where it would contain only the login...
asked by 19.06.2014 / 14:49
1
answer

JDBCTemplate RowMapper for Nested POJOs

Let's say I have the following Pojos public class Pedidos{ private Strig codigo; private String nomePedido; private List<Dados> dadosPedido; //getters e setters} } E public class Dados { private String nome; private...
asked by 27.02.2014 / 19:48
0
answers

Learning problem with SpringBoot

Hello, I'm starting my study in SpringBoot, where I arrived in a part that I could not solve due to an exception, where I already saw in several topics how to solve, and none worked for me. I created two Person and Cell entities and did th...
asked by 27.12.2018 / 03:38
3
answers

Multiple query values with JPA / Sprint and Rest

Good morning, I need to make a query via REST where multiple IDs will be sent for example (ID: 1, ID: 2, ID: 3, etc). To search only for an ID I use findById(codigo) , but I do not know how to use multiple data. As I'm using RESTFull, how...
asked by 28.09.2018 / 15:20
1
answer

Problem setting up spring data jpa project with Hsqldb

I'm trying to set up a sample project using Spring Data JPA with Hsqldb I made the person class that would be model , the interface repository and a main class to run. I did not create the database because I have a question if...
asked by 23.02.2014 / 22:17
0
answers

Join with Specification

I have the following query: SELECT tab1.nom_shopping, tab1.nom_fantasia, tab1.luc, tab1.dat_vencimento, tab1.num_boleto, tab1.val_saldo_aberto, tab2.num_cpfcnpj negativado, tab2.id_pessoa_vinculo_loja [IdPessoa],...
asked by 12.09.2018 / 20:55