Questions tagged as 'java'

1
answer

PUT or database update

   How to update objects in my database via put json? This is my post code as an example, but I do not know how to do the put that is to update, I need it a lot public class onbuttonclickHttpPost extends AsyncTask<String, Void, String&g...
asked by 18.07.2017 / 15:47
1
answer

List data in a dataTable

I believe this method of dao should not be correct. DAO METHOD public List <Campeonato> listarTodos() { try { manager.getTransaction().begin(); Query query = manager.createNamedQuery("Campeona...
asked by 18.07.2017 / 15:27
0
answers

Group at Ireport (JasperStudio)

Good afternoon, For the creation of a report I make two searches, one in each distinct table. After, I create a list only with the data returned from those two. Example: List<Venda> lista = new ArrayList<Venda>(); Collection<...
asked by 30.06.2017 / 18:20
1
answer

query model.vo a solution with jpql and subqueryes

I have the following query in MySQL wanting to pass to JPQL and I am doubtful in the syntax: SELECT a2.produto , a2.descricao, a2.quantidade_recente, Soma from (SELECT p.codigoProduto, sum(p.quantidad...
asked by 30.06.2017 / 19:58
1
answer

Update notify change

Can you tell if a value has changed in an in-app table? Type I gave one UPDATE tabela SET valor = 1 WHERE id = 2; And in the application the message appears: O Valor foi alterado para 1 What I would like to do is to notify the clien...
asked by 30.06.2017 / 19:00
0
answers

Put Json method to update data

   I have a screen that receives data from another activity in your edittext, how to update this data and send it to my bank using the "put" method, I have a Post code, I will use it as an example, I believe is similar:       "POST" example:...
asked by 05.07.2017 / 20:49
0
answers

how to use query with more than one field (.vo template) in a datamodel

I have the following query and am wanting to put this list with products and the summation in a datamodel list. public List<Filtro> listarProdutosDoGerenteRegional() { try { return manager.createQuery(...
asked by 28.06.2017 / 18:00
0
answers

NOT FOUND in the webservice paths

I have a big problem with my webservice. I created CRUD and it worked normally, but new methods with path are not working, I do not know when I exported the project when crud was working .war. I tried several types of paths and returns and nothi...
asked by 28.06.2017 / 07:57
0
answers

Run schedule only in production environment

I have a procedure that performs every start of month to reset passwords for idle users. This procedure changes the user's password and sends an email notifying the new password. However, I have different environments (local, homologation and...
asked by 29.06.2017 / 19:19
1
answer

Buttons (Action) in the notification. How to know which one was clicked?

The purpose of the notification is to show the user an issue, and the user has two "YES" or "NO" answer options. The problem is knowing which button the user has loaded. Another thing I did not intend to do but that happens is that the use...
asked by 29.06.2017 / 17:06