Posts by Adilson Oliveira • 81 points
4 posts
-
2
votes1
answer451
viewsA: Configure external Tomcat server
Inside the Tomcat/conf folder is the server.xml file, responsible for configuring the service ports. Change the port on the line <Connector port="8081" protocol="HTTP/1.1"…
-
1
votes2
answers503
viewsA: Deleting data from a MYSQL table with Java
Remove the crases from the table and column name and also the quotes that involve passing the parameter in ps.setString() Your code goes like this: public void excluir(ModeloObjeto modelo) throws…
-
2
votes1
answer176
viewsA: how would that generic listAll() look?
Take the class as a parameter in the method and pass to select. public List<T> listAll(Class<T> clazz){ return (List<T>) entityManager.createQuery("select t from " +…
-
0
votes4
answers300
viewsA: Doubt about denial operator
In java, if only checks a boleana condition. boolean condicao = true; if(condicao) { }... //agora é possível negar a condição if(!condicao) { }... //para verificar se uma String está vazia pode…