Questions tagged as 'java'

0
answers

LazyDataModel Generic on the Facade

Well my question is about some tests I'm doing (studying) JSF and Generics, come on: I would like to know how dangerous (if there is such a possibility) or how wrong / right my idea below might be valid, I happen to like to create a LazyDa...
asked by 18.02.2018 / 03:33
1
answer

How do I populate a JTable?

I have a fairly simple java application that connects to a database, in the console I type the query I want to pass by parameter to the executeQuery. Now I need to pass all this to a graphical interface. Is there any way I can create just one wi...
asked by 10.06.2014 / 06:03
0
answers

Reading Java CSV file and MongoDB

I need a help! I'm new to java and need to import from a CSV file and save inside MongoDB! Importing is already being done successfully, however, I need to save the values in mongoDB in the style of an array. Example: Each I have a given Father...
asked by 18.02.2018 / 23:23
2
answers

Read data from java txt file and perform operations on Java

I'm doing a rental car in java I need to read from a txt the type of client (char), a range of dates (string) and the amount of passengers (int). I need to bring this data to be analyzed, for example according to the passenger qtd I make calc...
asked by 18.02.2018 / 13:28
1
answer

Liquibase always executing changesets

Hello, I have a problem running Liquibase with Maven + Spring Boot. The following occurs: I have two schemas, schema1 and schema2. In the project, I have 3 native SQL scripts: first create the two schema, then create the tables and third popu...
asked by 19.02.2018 / 02:38
2
answers

How to check if user has already been registered in the database?

How can I check if a user is already registered? For example, when registering a user check if the login has already been saved in the database. DAO looked like this: public boolean validarLogin (String login) throws SQLException, ClassNotFoun...
asked by 15.02.2018 / 20:20
0
answers

Comparison of Dates (Java.Util.Date) using compareTo and Java Generic

I'm developing an application of the Facebook genre. The problem is in sorting Publications by Date. My program uses Generics and a DoubleLinkedOrdeneredList to store those publications. @Override public void addElement(T element) {...
asked by 16.02.2018 / 21:46
0
answers

Java: "The message with Action 'X' can not be processed on the recipient."

I'm having trouble understanding what's being done wrong and because I'm getting this error message in java when trying to send the XML to the city of Camaquã. The parameters used and the wsdl link are in the code below. Message: "The message...
asked by 16.02.2018 / 12:39
1
answer

Image does not appear in the project

Good morning, I'm trying to put a pdf icon in my project, but the same does not appear. I'm using f: facet this way. <h:commandLink> <p:graphicImage name="/resources/img/pdf.png"/> <p:dataExporter type="pdf" target...
asked by 16.02.2018 / 13:23
1
answer

Error Starting Tomcat Server

I'm inserting two hibernate dependencies into my pom.xml <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core --> <dependency> <groupId>org.hibernate</groupId> <artifactId>hiber...
asked by 16.02.2018 / 15:45