Posts by Rafael Lopes • 83 points
6 posts
-
5
votes2
answers261
viewsQ: How can a Function expect the result of $http?
I’m having trouble with the following code: $http({ method: 'POST', url: '/publicacao/', data: $scope.publicacao, headers: {'Content-Type': 'application/json'} }).success(function(publicacao) {…
-
0
votes1
answer243
viewsQ: Exception when uploading Multipart from the Angularjs controller to the Spring Boot server
I’m having trouble sending files (images, pdfs) from the client side to the server side of my app. Whenever I try to send a file, Spring returns this exception: status:"Bad Request"…
-
0
votes1
answer122
viewsA: View ng-model’s JSON as the selected dropdown option
I managed to do this using the track by, that in that case the course identifiers are sigla and the periodo: <select name="curso" ng-options="curso.cursoId.sigla + ' - ' + curso.cursoId.periodo…
-
0
votes1
answer122
viewsQ: View ng-model’s JSON as the selected dropdown option
Hello, I’m having doubts if that’s possible. For example, I have a dropdown with a JSON array of courses on ng-options: <select name="curso" ng-options="curso.cursoId.sigla + ' - ' +…
-
1
votes1
answer785
viewsA: Composite key problems in JPA
In class Curso, the CursoId replaced the fields sigla and periodo, and the @IdClass was removed: @EmbeddedId private CursoId cursoId; //getter e setter pro CursoId também adicionados In class…
-
2
votes1
answer785
viewsQ: Composite key problems in JPA
Hi, I’m a little young with JPA and I’m having problems with a composite PK. Follows the class Aluno: @Entity @Table(name = "Aluno") public class Aluno { @Id private String ra; @Column(length = 50,…