Questions tagged as 'annotation'

1
answer

Refresh annotations

I need to update annotations on the map after inserting values in CoreData. I have the first view with the map, and a second where I add the new values to new annotations, but it is only when I enter the application for the first time that the a...
asked by 16.06.2015 / 13:38
0
answers

Can I assign the same URL to more than one controller?

I'm trying to use AJAX $.ajax({ url : urlN, // <<- "/log" type: "post", success : function(json) { console.log(json); document.getElementById('content').innerHTML = json; } setInterval(refreshDiv, 5000);...
asked by 09.08.2018 / 19:40
0
answers

How do annotations work in Java?

I would like to know how Java EJB annotations are done, those starting with "@"     
asked by 21.11.2016 / 18:52
2
answers

Is there any API to create a similar Google Directory API service?

I find the Google Directory API very interesting to gather documentation and test environment in an easy, objective and well-organized way. I wonder if there are any similar plugins that can be added to a Java application to automatically gen...
asked by 07.08.2015 / 19:27
1
answer

commit with @Transactional annotation in Spring

Good afternoon! I am new to java and Spring and am needing help in the code below. I need to commit every commit iteration, but it is only done at the end of the transaction, I created the persist method, thinking it would open a new transaction...
asked by 20.09.2018 / 20:01
1
answer

Date Validation with DataAnnotation

I wanted to know if I have validate whether the inserted date is larger or not than the current date using Annotation, or if I have to handle the same controller. If so, please provide an example.     
asked by 13.11.2016 / 02:13
1
answer

@joincolunm with foreignKey hibernate

Hello, I wanted to make a foreign key, but I do not understand the syntax. In the Address class: @Embeddable @Table(name = "tab_endereco") public class Endereco { @Column(length = 40, nullable = false) private String logradouro; @Column(l...
asked by 26.05.2018 / 03:44
1
answer

xml error annotation [closed]

I'm having a problem when I run my program and I have no idea what might be wrong, I did a Java program with Annotations. Could anyone tell me?    [Fatal Error]: 8: 83: Property type must be followed   by attribute specifications, ">" or "...
asked by 18.11.2016 / 16:13
0
answers

@PostConstruct is not accessible

Good night, I'm using javax.faces-2.2.9 and the @PostConstruct annotation does not appear, what can it be? <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/...
asked by 11.12.2018 / 01:30
0
answers

@DataJpaTest can not be resolved to a type

I'm doing a unit test, but the annotation @DataJpaTest is not being recognized, my pom.xml contains the following dependencies for JUnit: <dependency> <groupId>org.springframework</groupId>...
asked by 23.08.2018 / 17:55