Questions tagged as 'java'

1
answer

Hibernate Mapping - One to many / One to One / etc - Explanation

Basic example to understand how hibernate mapping works. Person table Sex table Mappingtothesetablesgenerates:Sex:publicclassSexoimplementsjava.io.Serializable{privateIntegeridsexo;privateStringtipo;privateSetpessoas=newHashSet(0);publ...
asked by 15.03.2017 / 16:17
0
answers

Logica error (I think)

Good evening programmers, I have a problem with my code and I do not understand where it is wrong. I created the following jFrame and the "<" and ">" should, after the registrations have been made, navigate among the registered items. H...
asked by 27.03.2017 / 00:50
0
answers

Sqlite only accesses the bank on a device

I created an application on Android that accesses the SqLite bank, the first application I created works normally! The application that works is version 7.1 of Android, but when I try to run the same code in 4.4, 5.1 or any other emulator to...
asked by 27.03.2017 / 19:08
1
answer

Help about a JPA query

I'm trying to make a query using JPA criteria, it would look like this: I'll go through 2 initial dates and a DateFinal and a vehicle's board how can I make this query? The table that I'm going to consult would be Service and it has a car...
asked by 08.04.2017 / 03:33
0
answers

How to get the body of the http request in the API

How do I access the body content of the request sent by the client? For example: @Override @GET @Path("/mypath") public Response myMethod() { System.out.println("Conteúdo da requisição: " + request.body); return null; }     
asked by 14.03.2017 / 13:53
1
answer

Error nullpointer when doing query in the bank with parameter

When I run the query below I have a nullPointer error. @Query(value = "SELECT * FROM x WHERE USER_NAME = :name", nativeQuery = true) DataBaseCobilling findByCdIdent(@Param("name") String name); But when I run this one it works: @Query(val...
asked by 21.03.2017 / 15:24
0
answers

Close an activity and start another (Interstitial admob)

I have an Interstitial admob in an activity and when I press a button I put the following lines of code: botaoid.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { i...
asked by 21.03.2017 / 02:04
0
answers

Send String ArrayList via UDP in java

Hello, the question is this: How do I send an entire ArrayList via UDP from the server to the client in Java? I can send a String only one at a time and it works very well. But I do not know how to send an ArrayList of Strings. Part of my cod...
asked by 25.03.2017 / 23:06
1
answer

jasper with javaFx does not open by jar

I have a strange problem, I made an application with javafx and jasperstudio and when running within eclipse it works perfectly. When generating the .jar and run, it works, however if I remonear the directory where the fonts are, it stops workin...
asked by 13.03.2017 / 13:12
0
answers

Create / Edit file (txt) on Android

Hello ... sorry if I posted in the wrong place or wrongly, because I am new to the forum (although I always read it). Lollipop helped me a lot with the explanation: link But I have 3 doubts: If I want to keep the data contained in th...
asked by 08.03.2017 / 02:28