Posts by Cleriston Lincoln • 49 points
18 posts
-
0
votes1
answer18
viewsQ: object appears in console but is not added to list
When added in the list, the objects appear in the console. however the list is not updated and no obj sent appears. import 'package:flutter/material.dart'; void main() => runApp(Home()); class…
flutterasked Cleriston Lincoln 49 -
0
votes1
answer94
viewsA: Heroku with Cors error
All the indications were pom trouble. first to streamline I started to run the project on local Heroku using "local Heroku" and see what was the problem. all changes were made to the plugins of the…
-
-1
votes1
answer94
viewsQ: Heroku with Cors error
I have Cors problem in Heroku. Cors class @Configuration public class WebConfig implements WebMvcConfigurer { @Override public void addCorsMappings(CorsRegistry registry) {…
-
0
votes0
answers17
viewsQ: Problems running window.onbeforeunload in Angular
I need to open an external site and when the user closes this window I will have to capture an element. The problem is that it is not going through the log inside onbeforeunload... My code in the…
angularasked Cleriston Lincoln 49 -
-1
votes2
answers702
viewsA: Query with Collection in JPA Spring Data
I think the @Query() annotation solves your problem. Take a look here: Youtube video (english)
-
-1
votes2
answers150
viewsA: Make Insert with foreign key
Very generic what may be causing this, in addition to little information from your code. Do a debug and see where it is popping. see if you’re not sending any null value in the post where you…
javaanswered Cleriston Lincoln 49 -
0
votes1
answer177
viewsQ: Post only the Manytomany relationship
I have the school entities and teacher. I mapped the Manytomany relationship. I have no idea how to save only the list by passing an array of ids. Teacher class @Id Long id; // não importa os demais…
-
0
votes2
answers95
viewsQ: Changing an entity by passing a list
Hello, I have a registered teacher class and want to change it by passing an array of subjects. I have the following code: teacher class: //... atributos não importantes ao problema @ManyToMany…
-
0
votes2
answers1529
viewsQ: Error - to create query for method public Abstract org.springframework.data.domain.Page
I’ve been line by line to find out what’s different between an object that’s worked and what’s going wrong and I can’t find the problem. This Student object is giving error. If I comment the get…
-
-1
votes1
answer162
viewsQ: Return the generated id
I am using Angular 6+ and springboot. As Gero an id and recover it? ex: I have the following page: When the user clicks on "New" will make a post. And this id that was generated will appear in the…
angularasked Cleriston Lincoln 49 -
0
votes2
answers39
viewsA: Insert a value into a variable in the form
My final code was : this.service.postSubgroup({ ...this.formulario.value, groupItem: ({ id: this.idGroup }) });
-
0
votes2
answers39
viewsQ: Insert a value into a variable in the form
I have a group and subgroup record. My idGroup is receiving a value and I have to insert it in the form to go in the post. @Input() idGrupo: any; configurarFormulario() { this.formulario =…
-
0
votes1
answer53
viewsA: Can I call a function within Validators in a reactive form?
yes. for example: descricao: [null, [ this.validarObrigatoriedade ] ] validarObrigatoriedade(input: FormControl) { return (input.value ? null : { obrigatoriedade: true }); }…
angularanswered Cleriston Lincoln 49 -
0
votes1
answer92
viewsQ: Angular - Subgroup according to group id
I need to generate the subgroup according to the one selected in the group. I managed to go to present the id that was selected in html, I could not pass this value to getid. I’m using Angular 6 +…
angularasked Cleriston Lincoln 49 -
0
votes1
answer257
viewsA: Select which attributes GET returns from the list in Rest
From a look at http://www.baeldung.com/jackson-json-view-annotation Basically: 1 - Create a class: public class Views{ public static class Public{} public static class General extends public{} }…
restfulanswered Cleriston Lincoln 49 -
0
votes1
answer257
viewsQ: Select which attributes GET returns from the list in Rest
Ladies and gentlemen, I have the following question. I have an application in Rest that when I ask to return the list, comes with many unnecessary fields, "example below". How do I select the…
restfulasked Cleriston Lincoln 49 -
0
votes1
answer207
viewsQ: Manipulating dates
I have doubts about the steps to manipulate dates. The steps below are ok? Can I start studies? I have the attribute Date and I want to insert 2 days. Convert Date in String. Convert String in…
-
2
votes2
answers145
viewsQ: Problems trying to save data from the form
I am not getting through the HTML page to insert the name and save. Could anyone explain what is happening? @Entity public class Livro { @Id @GeneratedValue(strategy = GenerationType.AUTO) private…