Posts by klaytonbrito • 491 points
14 posts
-
1
votes1
answer262
viewsQ: Unable to locate current JTA Transaction
The project is divided into the following modules: test-persistence; test-services; web test; I use Glassfish 4 as an application server and it has a connection pool configured for connections to…
-
1
votes1
answer1481
viewsQ: Configure Spring applicationContext by taking advantage of other configuration files
I got the following hibernate.cfg.xml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"…
-
5
votes1
answer12035
viewsQ: Operation of the Spring Framework @Transactional
1 - The Spring documentation describes the use of @Transactional Spring in the business rule classes(ProdutosService for example) there is some special reason to use this annotation in these classes…
-
4
votes1
answer8935
viewsA: Problem persisting: "Cannot add or update a Child Row: a Foreign key Constraint fails..."
I solved the problem by analyzing the code of the tables after its creation, and found that in one of the tables a SMALLINT(5) key was created and in another referenced table a SMALLINT(6) was…
-
2
votes1
answer8935
viewsQ: Problem persisting: "Cannot add or update a Child Row: a Foreign key Constraint fails..."
Tables Contact CREATE TABLE IF NOT EXISTS `sgct-database1`.`contato` ( `contato_id` SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT, `telefone` CHAR(10) NOT NULL, `celular` CHAR(11) NULL, PRIMARY KEY…
-
3
votes1
answer856
viewsQ: Spring MVC in HTML pages without JSP
1 - You can use data sent by Spring Controllers in HTML pages (using HTML5 tags), not to use JSP? 2 - If not possible, how can I make JSP pages with Spring MVC with minimal Java code intrusion on…
-
1
votes1
answer117
viewsQ: Best Way to Provide Sessions for DAO’s
I was researching on the internet ways to inject Sessions in the DAO’s this: Hibernateutil This way is to implement a utility class that will configure, instantiate and make available an object…
-
4
votes3
answers474
viewsQ: Map java.time properties with Hibernate and/or JPA
Is there any way to map properties like java.time.LocalDate and/or java.time.Instant through JPA and/or Hibernate?
-
1
votes1
answer1525
viewsQ: Map columns of separate tables into a single object and vice versa
Situation 1 I have the following tables, very simple: ....................... And I have the following classes: Client: @Entity public class Cliente implements Serializable { private static final…
-
2
votes1
answer649
viewsQ: Spring Framework in modular design by Apache Maven
I created a modular web project using Apache Maven with the following structure: proj-build |--- proj-utils |--- proj-persistence |--- proj-services |--- proj-web `--- proj-ear Description…
-
4
votes1
answer4795
viewsQ: Apache Maven scopes usage situations
The question is about the different values that can be assigned to the property <scope> of the Apache Maven dependencies, and what criteria should I establish for the use of each of them.…
-
1
votes0
answers171
viewsQ: Using bootstrap and apache Tiles
I will start using Spring MVC to create my pages but have some questions: Using Apache Tiles to create templates and using Bootstrap(CSS Framework) to style pages is advantageous, or is it better to…
-
4
votes1
answer2823
viewsQ: Differences between glassfish 4.0 and Wildfly 8.0.0
1 - There is some difference in performance and/or usage complexity when comparing application servers: Glassfish 4.0 and Wildfly 8.0.0? 2 - Is there any specific situation where the use of 1(one)…
glassfishasked klaytonbrito 491 -
3
votes1
answer225
viewsQ: javax.el - Implementation of Glassfish
There is a JSR-000341(Expression Language - EL) API in version 3.0.0. Maven dependency on the javax.el API: <dependency> <groupId>javax.el</groupId>…