Posts by Wesley Ventura • 11 points
3 posts
-
0
votes1
answer146
viewsA: JPQL Illegalargumentexception - Unexpected token: SUM
Is missing the select right at the beginning, as you want to return a single value that would be the sum and not the whole object. "SELECT SUM (e.quantidade) FROM Stock and Join fetch e.produtos…
-
1
votes1
answer76
viewsA: How does a car class in Java convert to C++?
In C++ would look like this: class Carro{ private: string nome; int ano; string modelo;string marca;string combustivel;double valor; public: getter /setter; void print(){ cout << "Carro modelo…
-
-1
votes2
answers55
viewsA: Method returning Nullpointerexception (JAVA)
You need to instantiate the Car class ex: public Driver(String name){ carroAtual = new car(); }