Questions tagged as 'java'

1
answer

MySQL - Foreign key in ON DELETE NO ACTION but executes ON DELETE CASCADE

I'm developing a system using Apache , Hibernate e MySQL . But I have a problem while deleting parent entries from a foreign key. The database should prevent the deletion, but it deletes the parent entry and all associated with it, t...
asked by 03.04.2016 / 00:23
0
answers

Problems generating JSON with JAVA

I'm having trouble generating this json { "receita": [{ "specialtys": [{ "date": "27/01/2016 00:00:00", "itemSpecialtys": [{ "specialtyId": 1, "specialtyName": "Tabelionato de...
asked by 29.01.2016 / 19:47
0
answers

Log4j is not generating log backup

I have two jar in the same classpath, so they are using the same log4j.xml. The project in which xml is, does the roll correctly, but the other project does not. I have set up the xml to generate 10 backup of size 1096K, but the backups are n...
asked by 23.02.2016 / 19:03
0
answers

Hosting tips for Java application using JSP, Hibernate, Mysql and TomCat serving data for Android application [closed]

Well, guys, this is it. I developed an Android application where it is fed with data coming from a remote (Mysql) database, via RestFul. On the server side, I developed a java application using JSP and Hibernate, MySql database, running on To...
asked by 19.02.2016 / 11:42
0
answers

Plugin execution not covered by lifecycle configuration

I have implemented unit tests using Jasmine in my application and want to configure in Maven a continuous integration so that the tests run automatically. It is already working, however an error is appearing in the Eclipse console and I would li...
asked by 17.03.2016 / 13:49
1
answer

Searching for documents with mongoDB

I'm using mongoDB 3.2 with Java. Is it possible to save a mongoDB query in a list of objects of a class of mine? I want to save the query directly to a list of people. class Pessoa{ String nome; Date dataNascimento; String em...
asked by 10.03.2016 / 18:57
1
answer

Code that leverages decimal value in C # for Java / Android

I have a code that rounds a value of type decimal to homes I want, and I would like to implement it in Android in Java but I'm having some difficulties, here's the code below in C #. public static class Valor { public static decimal...
asked by 16.12.2015 / 18:37
0
answers

GlassFish Integration with Eclipse Photon [closed]

Has anyone ever used glassfish with eclipse photon? How to do the integration? I've tried it in many ways and nothing. Do not install the glassfish plugin. I tested with the oxygen eclipse and also did not succeed. can anybody help me? I already...
asked by 07.08.2018 / 19:15
1
answer

How to transition to the previous fragment when you press the back button?

I'm having the following problem: I have an activity, in which I call a fragment as follows: FragmentManager fm = getSupportFragmentManager(); Fragment frag = new MyFragment(); FragmentTransaction ft = fm.beginTransaction(); ft...
asked by 07.08.2018 / 22:54
2
answers

Implementing Paint in JavaFX

I'm trying to implement a Paint-like application with JavaFX. I can draw a line from one point to another, but it only appears after I release the button at the end point. When I try to implement MouseEvent._MOUSE_DRAGGED, several lines are d...
asked by 03.08.2018 / 23:36