Questions tagged as 'java'

1
answer

JPA does not reflect the changed data in the DB manually

I have a JavaFX application with Hibernate (JPA). In this application I update a TableView with the data I search from BD (MySql). Whenever I click on the system to fetch some data in the DB, it executes the following code: public Task&l...
asked by 27.01.2016 / 16:55
3
answers

Problems implementing implement convert to selectOneMenu

Good afternoon. I am having trouble implementing a selectOneMenu of objects in my xhtml. It is giving "Conversion Error". Could someone tell me what the code problem is? Error code: Erro de conversão ao definir o valor 'br.com.somore.model....
asked by 19.05.2015 / 20:51
2
answers

Error trying to execute a class

This is my first post here on the stack, I'm having trouble running this class on NetBeans. I am using version 1.8.0_40 of Java, I already tried to search for some solution, but I did not find it. public class Dialog1 { /** * @param...
asked by 12.03.2015 / 19:33
1
answer

What is the best way to keep up with software flow?

I have a great project, how do I track the flow (step by step)? I have several classes and I have no idea what methods are called, what classes are, and so on. I put a breakpoint at a point that I know goes through there in debug mode but the...
asked by 09.03.2015 / 15:28
1
answer

Java class for performance analysis of my project

I'm looking for a Java class or package to help me do an analysis of the performance of my app. I need information such as: processing time, memory consumption, processor usage ... and so on. I know there are some tools to do this, but I want to...
asked by 30.03.2015 / 19:27
1
answer

How to properly reuse business rules using EJBs?

I am refactoring a system where the greatest concern is to decrease the coupling and complexity of the various levels of inheritance, so the examples are illustrative. I have the entities Contrato , ContratoUso and ContratoAde...
asked by 11.12.2014 / 19:55
1
answer

"percentage can not be resolved to a variable"

I need to set the value of the variable porcentagem according to what is set in Spinner . The problem is that I need to use the value of porcentagem out of method setOnItemSelectedListener() , on line int r = edtVaoN...
asked by 23.11.2014 / 06:32
1
answer

Generic and Comparable in Java

I have a question that I can not answer, if anyone can give me a plausible explanation, I'll be grateful. Assuming I have 2 classes: public class Figura implements Comparable<Figura> { private final int largura, altura; Figur...
asked by 04.11.2017 / 19:32
1
answer

@Enumerated (EnumType.STRING) Hibernate JPA

I have the following classificacao field in a table. This field is populated elsewhere and is filled with only 'P' or 'N' , acronyms for Positive and Negative . I then created enum Java. Classification.java p...
asked by 01.11.2017 / 18:46
1
answer

Accessing Webservice over Android - KSOAP2

I'm creating an Android APP and I have to connect to my company's web service to make the login system, I'm using the KSOAP2 3.3.0 lib. The path to my WS is for example as: link My problem that happens: 09-04 10:57:52.835: W/System.err...
asked by 04.09.2014 / 16:24