Questions tagged as 'java'

1
answer

How to Save the Date Field of a Java SE Application in PostgreSql

I need to save these two dates (ALLOCATION DATE and RETURN DATE) from an allocation, where I have the following Allocation Table: CREATE TABLE public.aloca ( alocod serial NOT NULL, alodtdevolucao date NOT NULL, alodtalocacao date NOT NU...
asked by 06.09.2017 / 22:52
0
answers

Auto search (Auto complete search)

Good afternoon! I'm trying to implement an auto complete search on my system. But so far I have not achieved a satisfactory result. What I want is when the user search goes showing the result, as google does. I already tried it, I already tried...
asked by 06.09.2017 / 22:59
1
answer

Popular Spinner with firebase data

This is the code for the "Activity Room" public class CadastroCursoActivity extends AppCompatActivity { private EditText nomeCurso; private ListView lv_Curso; private Toolbar toolbarCurso; private List<Curso> listCurso...
asked by 30.08.2017 / 10:56
0
answers

JPA with "detached entity passed to persist:"

Hello, I have a problem because I use an intermediate table to save the IDs of 2 other tables. I'm not sure what to do with JPA, but I'm not sure what to do, but I'm not sure how to do this. instance.setDtCriacao(new Date(System.currentTimeMill...
asked by 30.08.2017 / 16:16
1
answer

Problem implementing JSF Converter with p: selectOneMenu

I'm having trouble implementing a convert to a simple selectOneMenu of Primefaces. When passing the getAsObject method of the Convert value parameter comes with the description of what was selected by the user and not with the Id that is in the...
asked by 30.08.2017 / 17:11
2
answers

Strings counter in ArrayList [duplicate]

I need the program to return the amount of times each% of% was repeated within String , but I could not think of a way to have my counter reused for each item, as it shows there at the output, he says that the data 3 repeated 4, 5 and 6...
asked by 30.08.2017 / 19:39
0
answers

Maven compilation error plugin

I use the following plugins to compile and run my web project in IntelliJ IDEA: pom.xml //Código do pom.xml omitido . . . <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifac...
asked by 28.08.2017 / 19:17
1
answer

Class is managed, but is not listed in the persistence.xml file

I'm having a problem that was not before I migrated to JPA 2.0. Receiving message that all my classes / entities are not listed in persistence.xml and even after adding them I keep getting the message. link Follow my persistence.xml &l...
asked by 28.08.2017 / 16:36
0
answers

How to put the values of a db column in an array?

I have a table, which is written below. Busy is the part I'm going to play. the value of busy will change according to the program from 0 to 1, depending on whether you are busy or not. I need to load these values into an array, how can I do thi...
asked by 10.09.2017 / 23:33
1
answer

Entering data automatically when loading the JSP page

I'm developing a web application using jsp, where I register a mototrist but soon after loading the page jsp the application already tries to register the driver's data alone, thus giving the error <%@pageimport="java.util.List"%> <...
asked by 10.09.2017 / 17:23