Posts by Fábio Zoz • 116 points
13 posts
-
0
votes1
answer254
viewsA: JSON Persist Creating List Objects
I think you just need to specify the property Cascade=ALL in the oneToMany Annotation, so JPA will persist/change/delete the child objects in cascade.
-
2
votes2
answers380
viewsA: Integration between Spring MVC and JPA
This error is happening because in your persistence.xml file, you entered the attribute transaction-type as "RESOURCE_LOCAL", which should be "JTA". Only by changing this setting you can inject…
-
1
votes1
answer288
viewsA: How to limit a relationship 1 to many JPA?
Unfortunately, you can’t do it that way. But as you use java, you can use object orientation to encapsulate this logic within your entity. For example: @Entity public class Item { @ManyToOne private…
-
0
votes1
answer186
viewsA: Httpsessionlistener a single session per user
I recommend it to you to use spring-security. That part of documentation shows how to use Concurrent Session Control, which is what you need.…
-
0
votes1
answer216
viewsA: I cannot inject Mockmvc into integration test [Spring Boot]
I guess I just missed the Annotation @WebMvcTest. See this excerpt from documentation.…
-
0
votes1
answer243
viewsA: Exception when uploading Multipart from the Angularjs controller to the Spring Boot server
It seems all right with your java code, maybe it’s something in your client, you already tried to send the file by curl or Postman?
-
1
votes1
answer498
viewsA: Serialization Localdatetime
I believe you should put the Annotation @JsonDeserialize on the field date of your class Agenda to use this deserializer only for this field. If you want to register the deserializer globally so…
-
0
votes4
answers1376
viewsA: Application with Tomcat and Spring Boot
I believe you have a dependency on spring-security in your project. According to the spring boot documentation, if you have spring-security on your classpath, spring-boot will automatically…
-
0
votes1
answer105
viewsA: Entity Repository Spring Error with Relationships
Hello, I don’t know if you have already identified your problem. I took a look at the error and saw that you declared your Restpository as follows: public interface Sells extends…
-
1
votes1
answer395
viewsA: Validate log data (spring-boot + Angularjs)
I don’t usually use spring-data-Rest, because its approach is a little different from the one I’m used to. I prefer to use spring-hateoas and develop the Rest controllers on my own, this makes it…
-
0
votes1
answer213
viewsA: 404 when trying to access post url with springboot
According to the spring-boot documentation, for you to create a basic web application, you only need the spring-boot Parent and the spring-boot-Starter-web dependency. The most common mistake that…
-
0
votes1
answer212
viewsA: Publication Error in Spring
It looks like you have some junk in your project. Try to deploy your . War in hand. If it works then you should delete the files that eclipse creates in your project (.classpath, .project, etc...)…
-
2
votes2
answers1762
viewsA: Pass JSP model to Springmvc controller
friend, take a look at these examples. You need to specify an object command in its model there in its controller. model.addAttribute("command", new MyObject()); Remembering that this object command…