Posts by Bruno Gasparotto • 588 points
9 posts
-
1
votes0
answers84
viewsQ: Exception interception for logging, using AOP with CDI in Java EE 7
Below I have part of a class, of which I want to eliminate repetitive logging code through AOP. /** * Javadoc omitido */ public abstract class JpaDao<T extends LongIdentifiable> implements…
-
9
votes1
answer766
viewsQ: Write unit tests for the interface or for the implementation?
Given the following test scenario, where I have the interface: public interface UserService { /** * Registra um usuário no sistema. * * @param user * Usuário à ser registrado. Não deve ser {@code…
-
3
votes2
answers5553
viewsA: Where to create the Assets folder in an android project?
The briefcase assets should be created at the root of your project, ie in the same folder directory gen and res for example. The image below exemplifies this structure: Reference: Google Android 3rd…
-
8
votes1
answer1423
viewsQ: Is JSF 2.2 suitable for modern HTML and CSS?
I will develop several web applications, and in most of them, besides receiving the documentation with the requirements, I will receive from a good web designer, all the front-end (static) with…
-
3
votes1
answer892
viewsQ: How to correctly declare Server Runtime or provided Wildfly dependency on Gradle
I have a Java web project being developed to run in Wildfly, using the Eclipse IDE. This application uses JPA, JTA, JSF and CDI at first, but will use other Java EE resources in the future. The…
-
2
votes1
answer2235
viewsQ: Exception org.hibernate.Propertyaccessexception: could not set a field value by Reflection Setter
I’m trying to map the following model in JPA with Hibernate: Company table: CREATE TABLE empresa ( id_empresa INT(11) NOT NULL AUTO_INCREMENT , PRIMARY KEY (id_empresa) ) ENGINE = InnoDB DEFAULT…
-
5
votes1
answer9990
viewsQ: Java Tutorial for Reading A3 Digital Certificate
I am looking for a tutorial for implementing read cards with A3 digital certificate. I’ve never worked with anything like this before and now this need has arisen. I searched some things on the web…
-
5
votes1
answer155
viewsQ: Optimized approach of checking if there is a certain entry in Windows hosts file
I have a Java web application with Applets that access services on the web. These services are accessed through a specific hostname (example: services.webapp.com.br) configured in the application.…
-
10
votes1
answer236
viewsQ: How to make Dbunit recognize the POLYGON data type of Postgresql?
I have the following dominance of the type polygon in the database: CREATE DOMAIN "global".polygon AS pg_catalog.polygon; The following table using this domain: CREATE TABLE user.area_geom (…