Questions tagged as 'java'

0
answers

How to return a MAP using nativeQuery from JPA?

I need to consult a bank that is already created, populated, and maintained by another application. So I do not have the entities in my project and I did not even want to create them. I'm using Spring Boot with JPA. Here is an example code:...
asked by 21.05.2017 / 22:26
1
answer

I can not select multiple objects from my components

I'm using a component of primefaces, but when I select multiple items from this component I can not select. I'm using an Enum, needs to be an arrayList? <h:outputLabel for="servico" value="Serviço:" /> <p:selectCheckboxMenu id=...
asked by 15.03.2017 / 20:23
0
answers

Change Location of Exported Table of Primefaces

I'm developing a web system using jsf and primefaces and would like to ask a question. I'm using dataExporter to export a dataTable to PDF .... I'm using the preProcessor method to add several things to the PDF document (...
asked by 15.03.2017 / 04:49
0
answers

Loading JTable and processor gets high process [closed]

I am making a system and it has a JTable and I need to load my data, I was analyzing through the task manager that when this function load the table is called, it increases the processor load a lot. What can it be? I already tested it and...
asked by 11.01.2017 / 23:25
0
answers

Bean and Annotations with Generics, how to do?

I'm in a project with Spring 4 configuring Redis and a construction like this came up: @Configuration @ComponentScan({"com.empresa.sistema.web.util"}) public class RedisConfig { @Bean public RedisTemplate<String, Object> redisTem...
asked by 30.05.2017 / 19:33
1
answer

listView with image text and subtitle

I'm setting up a sales app where a user will publish your product with price description and value description, I can list the photo all right but I can not put a title and the other descriptions Here is my list and my adapter public class...
asked by 12.01.2017 / 00:52
0
answers

Validation of RNE (National Registry of Foreigners) or CIE (Alien Identity Card)

Does anyone know how I can validate the number of the CIE (Foreign Identity Card) or RNE (National Register of Foreigners)? I believe there are two nomenclatures. Regardless of language.     
asked by 26.05.2017 / 16:03
1
answer

Notification icon in Android 5.0

I'm creating a push notification system with firebase in my project. The code that generates the push looks like this: notificationBuilder = new NotificationCompat.Builder(this) .setSmallIcon(R.drawable.ic_notification) .setColor(getResourc...
asked by 30.08.2016 / 20:36
2
answers

Delete data with the @ManyToOne relation

How do I delete data with the @ManyToOne relation? It does not give an error, but does not erase the data in the database. My class Pedido : public class Pedido extends GenericDomain{ @Column(nullable = false) private...
asked by 21.12.2016 / 12:51
1
answer

API Java Speech, in Portuguese

Is it possible to generate a speech synthesizer using API Java Speech , but with an accent Aportuguesado ? I do not understand much of Java , if you can detail the answer, thank you.     
asked by 16.11.2016 / 20:32