Questions tagged as 'annotation'

2
answers

Persistence with inheritance, one-to-one relationship and manual primary key

I am developing a web heritage project to finish my degree. I'm using Java (IDE: Spring Tool Suite), Spring, Hibernate and Mysql. I'm having a data modeling problem that I can not solve: An Equipment class must have an asset number a...
asked by 07.10.2017 / 22:47
1
answer

I can not display the Spring error message

I'm trying to validate some fields with annotations, but I can not bring the messages to the jsp page: User.java mport java.util.Calendar; import javax.validation.constraints.Email; import javax.validation.constraints.NotNull; import jav...
asked by 27.09.2017 / 16:50
1
answer

Annotation @Get does not work on the controller

I'm trying to customize my url with @Get in Vraptor 4, but it's not recognized, Follow the controller: @Controller public class OlaController { @Inject Result result; @Get("/ola") public void digaOla(){...
asked by 07.10.2016 / 16:46
1
answer

Spring MVC annotations are not working on Maven

Hello, I'm having a problem setting up Spring MVC in Maven , when I try to access the link it returns on browser:    STATUS 404 The requested resource is not available. And the WARNING:    No mapping found for HTTP reques...
asked by 06.09.2016 / 17:41
1
answer

Grouping only the first item in ManyToMany in Django

I have two tables: Author and Book where Book has an author = ManyToManyField Look at the examples with A1 (author one) and L1 (book one), and so on. Author - Book A1 - L1, L2, L3 A2 - L1 A1 - L3 A1 - L1 A1 - L1 A2 - L2, L3 A1 - L...
asked by 19.07.2016 / 16:51
0
answers

Using same parent table id on daughter - Hibernate

I'm having trouble configuring and handling the use of ID in parent / child classes using Hibernate . I get everything working correctly when the record does not exist in the parent table (records are created with% correct% of the p...
asked by 12.04.2016 / 19:00
1
answer

Android Set Name with brackets in the body json parameter

I'm having the following problem: I'm using the Android Rest API library link , and I'm trying a post, but the post only accepts a single parameter, which I am trying to send as an object, Json expects to receive the following: public class U...
asked by 10.09.2015 / 15:23
1
answer

DataAnnotation Validations Do Not Work on Properties with NotMapped Attribute in EF6

I upgraded the Entity Framework version from 5 to 6 in my project, and the Data Repository Context.SaveChanges stopped working in only a few cases. I found that using DataAnnotation in properties of my template that contained the [NotMapped]...
asked by 11.06.2015 / 19:11