Questions tagged as 'java'

1
answer

Allow access to S3 files without exposing AWS URL

I need to generate download links for files that are stored on S3, but my company does not want to expose the AWS URL. Our system is developed in Java and Spring, until then the system retrieved the required file and sends it through Response, b...
asked by 27.04.2018 / 22:02
1
answer

Map relationship between tables without foreign key

I have two tables in postgresql: schema1.imovel idt_imovel | int cod_imovel | string nome_imovel | string etc... schema2.declaration idt_declaracao | int cod_imovel | string status | string etc... The two tabl...
asked by 27.04.2018 / 14:20
1
answer

Error in eclipse installed on deepin linux

My eclipse is displaying an error on the console screen, although the program blazed. I'm using deepin linux 15.5 and Eclipse Oxygen.3a Release (4.7.3a). The error:     
asked by 04.05.2018 / 21:59
1
answer

Declaration of attributes in a Java class [closed]

Why were the declarations of these variables made like this? public class Jogo { private Tabuleiro tabuleiro; <<- private int rodada=1, vez=1; private Jogador jogador1; <<- private Jogador jogador2; <<- p...
asked by 04.04.2018 / 10:09
1
answer

Join multiple fetch returning duplicate JPA Criteria API values

In the method in question I want to return the query with the joins of employee and company. However, the Company class is related to the Query and to the Employee, and is returning duplicate in the JSON. Query class @Entity @Table(name="CO...
asked by 04.04.2018 / 20:44
0
answers

Multiple JDBC connections are thread-safe?

I am creating a very simple project in java and postgresql of clients and contacts between clients. There is the clientes table with id and name, and the contatos table with id1 and id2 that refer to clients. What happens if...
asked by 29.03.2018 / 02:56
0
answers

How to pass an object to another Activity [duplicate]

public class Despesa { private long id ; private Date data; private String local; private String endereco ; private String cnpj ; private LinkedList <Item> itens; private Str...
asked by 29.03.2018 / 03:34
0
answers

CardView And HorizontalScrollView

How do all cards have the same height with scroll horizontally? Fragment: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" xmlns:custom="http://sch...
asked by 24.03.2018 / 13:39
2
answers

Problems with relationship @ManyToMany

Good afternoon, guys, I'm having trouble with a @ManyToMany relationship. I have the Equipamento class and I have the Fornecedor class, where I can have a vendor that has multiple equipment and where I can also have equipment that...
asked by 23.03.2018 / 21:49
0
answers

Spring Boot + Hibernate + Google Cloud Sql + App Engine

I'm having trouble setting up the connection in my application with Google Cloud Sql (using the technologies highlighted in the title). I would like to be able to allow Spring to be responsible for DataSource, EntityManagerFactory, and Transacti...
asked by 24.03.2018 / 06:14