Questions tagged as 'java'

0
answers

Query Problem in Repository Spring Data Neo4j

I'm implementing a @Query in a @Repository with Spring Data Neo4j. Strangely the query that squeezes directly into the Neo4j Browser is identical to that presented in the console. As below: Query Neo4j in Browser: MATCH (u:User)-[v:VISITS]-...
asked by 13.11.2018 / 19:01
0
answers

How do I download a PDF for my application where the request made to the API returns Content-Disposition attachment?

My application makes a connection to an API that returns a PDF. This PDF is returned as an attachment according to the following image and when I try to save this file to any folder through my application, or an error occurs or the file is saved...
asked by 14.11.2018 / 13:24
1
answer

Do not register in JavaWeb Bank PrimeFaces

ProductDao: public class ProdutoDao implements IDao<Produto> { @Override public List<Produto> listar() { Session session = null; try { session = HibernateUtil.getSessionFactory().openSession()...
asked by 14.11.2018 / 16:01
0
answers

MongoDB with JasperReport

In the course of angular the teacher taught some commands to work with MongoDB using find, insert, update, updateOne and others, but with this form it is not possible to create reports with jasperReport, probably the best known I imagine, as I w...
asked by 22.11.2018 / 19:54
1
answer

How to keep the App always logged in with Firebase

How do I get my app logged in after waxing? Ex: I logged in once and every time I start the application again it is already logged in.     
asked by 12.11.2018 / 20:28
0
answers

Error inserting second datasource with GenericDAO

I'm trying to insert a second base in persistence.xml. I have already configured the datasource in jboss and tested it. When inserting a second persistence-unit in xml and attempting to raise jboss the error below occurs. I tried to set the @Pe...
asked by 12.11.2018 / 21:03
0
answers

Spring Boot connect to another base of Heroku - Error: could not extract ResultSet

I created a Python / Django app and published it on Heroku. (My database) Now I have a Java / Spring Boot API that is also in heroku. (Rest API) But it connects to the base created by Django that is also in heroku. I put in my applicati...
asked by 21.11.2018 / 20:40
0
answers

How to pick the selected options in the spinner of another activity

Class I want to check the spinner place, so I can only move to another page if I have selected something, I would use the option selected in Spinner instead in another class. public static Spinner lugar; public static EditText a; @Override pro...
asked by 21.11.2018 / 20:40
1
answer

Use Hibernate to record two equal classes

Good afternoon, I would like to relate the Partida class to the Time class, where I would get the PK (Id) of the home team and the visiting team. I'm wondering how to relate in both classes, since use in class Partida , as...
asked by 19.11.2018 / 21:40
3
answers

Embark Tomcat in Java Desktop application

After a long time, I was able to develop a Java application, with a graphical interface (swing), which simulates access to a given site and extracts data. The problem is that as it simulates a browser (with HtmlUnit), it needs Tomcat, and when I...
asked by 19.11.2018 / 21:38