I created a system where the user himself registers and the password is sent by email.
If you can not send the email, it generates an error and does not create the user, notifying the user.
It was working while you were using your own mail serve...
I have the following query in JPQL
FROM User u INNER JOIN FETCH u.enderecos e WHERE u.id =:id ORDER BY e.id DESC
A user can have more than ten addresses, so we want to bring only ten addresses and if the user wants, he loads ten times.
I...
Galera,
I began today to read the book that I mention in the title of this question.
Following step by step I created the server in the eclipse, the project and the initial servlet following the instructions in the book. But following the...
I have a lazy load on DataTable of PrimeFaces, and on this table I upload I want to edit a record.
Clicking the line will open a dialog with a form to edit that record. However, when you click the line, it opens...
I have an application that uses jasper-reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7 , tomcat 8 and on the front end we use angularjs . The requests rest are made via ajax .
The application is all set to receive o...
In a JavaEE environment, is it possible to extract the JDBC connection ( java.sql.Connection ) using JTA ?
I have a datasource in WildFly, where I inject as follows:
@PersistenceContext
private EntityManager entityManager;...
I have an application that uses jasper-reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7 , tomcat 8 and on the front end we use angularjs . The requests rest are made via ajax .
Spring perfectly understands the object...
Below I have part of a class, of which I want to eliminate the repetitive logging code through AOP.
/**
* Javadoc omitido
*/
public abstract class JpaDao<T extends LongIdentifiable> implements
GenericDao<T> {
@Overr...
Good morning, everyone. I'm doing the book project "algaworks-ebook-java-ee-7-with-jsf-primefaces-and-cdi-2a-edicao-20150228" and I'm having trouble adding omnifaces .
When I go up tomcat, I get the following error:
...
INFO: WELD-ENV-001...
We have a system that uses Struts 1 and singletons based on enums.
Now we have a dependency that was written using Spring 4.3.6.RELEASE which should only be used with other systems that also use Spring, so all declared Spring dependencies hav...