Questions tagged as 'spring'

1
answer

Relationship JPA, Spring, Angular,

I have a customer registration and I want to associate this customer with an equipment relationship but it is not saving the relationship. In the model layer of the client class I did so @OneToMany(cascade = {CascadeType.ALL } ) @JoinC...
asked by 31.08.2017 / 17:00
0
answers

Spring + OpenSessionInView does not work

I'm new to Spring and would like to use OpenSessionInView so I do not have to implement my Filter. web.xml file <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSche...
asked by 08.06.2017 / 18:35
1
answer

Hibernate gives insert but does not insert data into table

I have a visitor record in which I fill in the data (title and date), and hibernate executes when requesting "save" on the form. Here is the log when I ask to save in bank (MySql). 12:37:27.752 DEBUG org.hibernate.validator.internal.metadat...
asked by 15.06.2017 / 17:42
1
answer

Spring data JPA findOne () returns null

I'm developing an application using Spring MVC, with spring data jpa in the persistence layer. When I try to do a search using the method findOne (or findById ) will always return null. I already checked the database and there...
asked by 30.05.2017 / 04:59
1
answer

Dynamic ROLES with Spring Security?

I have a system where everyone who access has a ROLE default user, but if a user is assigned a task of the type secretary, the ROLE of that user will be SECRETARY, users can assign tasks and by this, whoever receives the task will have their ROL...
asked by 30.05.2017 / 21:06
2
answers

Spring MVC and UTF-8

I'm making use of Spring MVC in a project, running on Glassfish server and having trouble displaying text on JSP pages that contain special characters like accents. I have already tried to put the charset in HTML pages via HTML, HTML5 and even v...
asked by 23.05.2017 / 19:46
0
answers

Criteria Hibernate - Error

I'm getting the following Exception , I looked at my code and I can not find the error. The query is performed and returns the objects, but when it returns, it throws the exception . @SuppressWarnings("unchecked") @Override @Transactional...
asked by 23.05.2017 / 21:57
1
answer

Add items dynamically to a list using Thymeleaf

In my application, I have a form for adding a determining object to the database. In this object I have a list of other objects. For example, it is as if the object that I am registering is a Sale and the list is Sales Item. How to add multiple...
asked by 22.05.2017 / 01:31
0
answers

JavaScript is not recognized by Chrome

I'm having trouble using Spring MVC, Google Chrome, and JavaScript. Every time I create a new JavaScript file, in my project using Spring, the browser does not recognize this file. I have already cleared the cache, and it did not resolve....
asked by 19.05.2017 / 23:06
2
answers

How to add custom methods to all spring data services

I've implemented methods on a Repository so all my child repositories have the same methods. Lowers the code of how I implemented a% custom% This is the interface: @NoRepositoryBean public interface BaseMyRepository<T, ID exte...
asked by 16.05.2017 / 23:43