Questions tagged as 'java'

0
answers

Error selecting an item in a Recycler View

I hope you can help me with my problem, I have spent a lot of time trying to correct it. I have a recycler view but when I click (in this case, symbol +) in one item, I also select another one in a lower position. This way. this is the...
asked by 17.10.2018 / 21:15
0
answers

ExceptionInInitializerError

This is my HibernateUtil file: /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package proyecto2.db; impo...
asked by 23.10.2018 / 07:45
0
answers

java graphics coloring recursive polygon

Hi, I have to do a project like this video, someone could help me, I have not used the graphic libraries. The coloring has to be with a recursive method I leave here the video of the program link     
asked by 15.10.2018 / 22:57
1
answer

Response Entity HttpClient

I request your collaboration due to the fact that I am consuming information from a website and I do not know what the problem is that is generating me, because in some requests I can do String mensaje = EntityUtils.toString(entity); and...
asked by 15.10.2018 / 21:30
0
answers

Search with SQLite filter

I have a table called BUSINESS, with name, category, time, address. Create a method: public List<Negocio> findFilter(String selection){ //BUSCAR CON FILTRO //Cursor cursor = database.query(NegociosDBOpenHelper.TABLE_NEGOCIOS...
asked by 16.10.2018 / 02:15
0
answers

How to set value in a selectOneRadio in jsf

I have a problem what happens is that I want to set some values that come from the DB and there is a column with certain names that I send them from a dao implement and those same ones by means of a method I want to do that set to to give edit I...
asked by 16.10.2018 / 23:31
1
answer

JPA query that is not repeated and ordered without using @Query

I want to get all the records in the database by name, without them being repeated and ordered. The problem is that I can not use @Query. POJO @Entity @Table(name = "PARAMETER") @JsonIgnoreProperties({ "hibernateLazyInitializer", "handler"...
asked by 17.10.2018 / 14:37
0
answers

InvocationTargetException when creating a session in Hibernate

I'm learning to use hibernate, and I do not know if it's bad luck but every tutorial I find and implement ends up giving me exceptions, even if they are official tutorials. My problem is that when creating a session and saving an object of ty...
asked by 17.10.2018 / 14:34
0
answers

Directing to another java project in Netbeans

I need that after doing a certain procedure in a method of project "A" I was directed to a project class "B", I'm working in Netbeans, project "A" is in Struts 1 and project "B" is in JSF. I would be grateful to who can help me or give ideas.  ...
asked by 17.10.2018 / 15:03
1
answer

Optimize java code and mysql connections

I have developed a desktop application in Java and I use connections to MySQL , at the moment it is locally, but I have noticed that it uses my processor too much, reviewing the open processes of MySQL , I could find that it leaves many proces...
asked by 16.10.2018 / 05:29