Posts by Joao Spirit • 101 points
14 posts
-
0
votes2
answers132
viewsQ: Error in a Function with callback
js and getting into callback I’m having a problem error: TypeError: callback is not a function at Timeout._onTimeout (C:\Users\SpiriT\Documents\estudo\callback\index.js:4:16) at ontimeout…
-
1
votes1
answer84
viewsQ: Problem finding a solution in an array / list
I’m having a problem printing data from an array. I have 2 classes (Apartamento and Predio). Within my class Predio i have a method that adds my apartment to a floor: public void adicionarApto(int…
javaasked Joao Spirit 101 -
3
votes1
answer116
viewsQ: Problem to use a "System.out" on an object
I’m trying to give a System.out.println on an object I have (even with the toString() in class) I’m getting: Predio [name=LS, aptos=[[Lmodel.Apartamento;@7ba4f24f, [Lmodel.Apartment;@3b9a45b3,…
-
2
votes1
answer62
viewsQ: Doubt regarding the Java two-dimensional array
I have this two-dimensional array and wanted to create a different object for each of his entries, but I’m having trouble doing this with a for. Scanner scanner = new Scanner(System.in); Predio…
javaasked Joao Spirit 101 -
1
votes1
answer893
viewsQ: Js Node / Routes / Controllers
I’m starting to study the nodejs and a question has arisen: Good I wanted to make an api to power the front - end web and mobile with this api in case I have these routes (only for study): const…
node.jsasked Joao Spirit 101 -
-2
votes1
answer144
viewsQ: Doubt regarding Nodejs and Mongoose
Hello I started to study nodejs and I have a question regarding connections with database and relationships, Using Mongoose I made this schema: const mongoose = require('mongoose'); const…
node.jsasked Joao Spirit 101 -
0
votes2
answers61
viewsQ: Read data, add it to a list and then print it
I have to create a class Agenda, and then create a list of schedules and print. Man main: public static void main(String[] args) { List<Agenda> lista = new ArrayList<Agenda>(); Agenda…
javaasked Joao Spirit 101 -
0
votes0
answers163
viewsQ: Help with a MER
Well someone could help me with my MER I’m wondering if I’m using the correct logic in relationships and cardinalities: a report may have one or more services 1 - n a request has one or more reports…
-
0
votes1
answer46
viewsA: Help with jdbctemplate / query / rs
Well after much search on the subject I ended up coming to this method: public boolean verificar(String login, String senha) { try { Usuarios usuarios =…
springanswered Joao Spirit 101 -
0
votes1
answer240
viewsQ: No Qualifying bean of type helps with this error:
I’m trying to use the swing and the spring but I have this problem: Exception in thread "restartedMain" java.lang.reflect.InvocationTargetException at…
-
0
votes1
answer46
viewsQ: Help with jdbctemplate / query / rs
Well I’m trying to give a select in the database to get the data from a String: final String queryPorLogin = "SELECT * from usuarios where login=? "; @Autowired private JdbcTemplate jdbcTemplate;…
springasked Joao Spirit 101 -
0
votes1
answer185
viewsQ: Help with Spring jdbcTemplate
I created a class: package com.market.config; import javax.activation.DataSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration;…
-
0
votes1
answer28
viewsQ: Questions in relationships Ibernate
Could someone ask me some questions about Ibernate? Good have 2 product and sales tables with a n:n relationship that generated an item_sale table I did it in my two models to map: Class Products:…
hibernateasked Joao Spirit 101 -
0
votes0
answers51
viewsQ: Could not find any META-INF / No Persistence Provider
I have these errors when trying to compile: my Hibernate 5.4.3.Final I created my folder META-INF How can I fix this? INFO: HHH000318: Could not find any META-INF/persistence.xml file in the…
javaasked Joao Spirit 101