Questions tagged as 'java'

1
answer

Merge POJO and Entity

I'm studying JPA and need to serialize an entity: @Entity public class Employee { @Id private Integer id; ... } Is it good practice to serialize an entity directly just like I do with a POJO? O...
asked by 13.09.2018 / 02:08
0
answers

IllegalArgumentException while doing deploy Spring Boot application in WebLogic

I'm not able to successfully deploy my Spring boot 2-based application on a server running Oracle WebLogic 12.1.3 because of this error: weblogic.application.ModuleException: null null at weblogic.servlet.internal.WebAppModule.createMo...
asked by 30.08.2018 / 19:39
0
answers

Java - error: can not find symbol - Even with created object

I created these two classes: Equipment.java class Equipamento{ private int id; private String nome; private String local; public void setId(int id){ this.id = id; } public void setNome(String n){ this.nome = n;...
asked by 24.08.2018 / 18:18
0
answers

Plugin to create variable instance constructor at runtime

I need to create some tests using variables already instantiated at runtime, and instead of manually mounting, object by object, attribute by attribute, I would like some tool that automates itself and already brings code with objects and variab...
asked by 24.08.2018 / 16:11
1
answer

In descending order, remove a value from the entered number up to 0

I need the program to remove a value from the number entered by the user until it reaches 0. I do not know if the replay loop used should be for, but my program looked like this. package numerodescrecente; import java.util.Scanner; public cl...
asked by 25.08.2018 / 20:57
0
answers

setX and setY do not work in the pane (JavaFX)

I'm having a problem setting the x and y position of an ImageView in a JavaFX Pane. It is a looping code, and the first time the method is called, it points to the img object in the specific coordinates (last two lines), but from the second time...
asked by 17.09.2018 / 15:38
1
answer

OneToMany mapping with associative table with HIBERNATE - JPA

I need to map Hibernate from a 1:N relation to two tables, but there is an associative table that has the ids of the other two tables as columns. Example: The Servicos table can have many Itens and each item can only b...
asked by 21.08.2018 / 18:59
0
answers

MVC Architecture of Routes and Controllers with several versions using Spark

I'm implementing a Rest API in Java using the framework Spark . I need to split the routes into two or more versions: v1 and v2 . I know Spark supplies path() , I believe it's not hard. My question is how to perform folder...
asked by 14.09.2018 / 16:01
0
answers

Android - How to properly loop in an activity and pause it and summarize it

I have a project of a CHIP-8 emulator that I'm trying to port to android, the whole emulator is written in C ++ I just created a C ++ library in android studio and added it to my project, the problem is, I need to manipulate he would see activit...
asked by 19.09.2018 / 20:42
2
answers

How to use AJAX in an iframe?

To contextualize: I'm trying to make only a part of my HTML page updated every 5 seconds. For this, I'm using AJAX. In the middle of development, I encountered a problem of not being able to return the object and my view at the same time, s...
asked by 14.08.2018 / 18:28