Questions tagged as 'java-ee'

2
answers

Correct structure for working with java (JSP)

I'm starting to develop with java (jsp). And I would like to know the correct structure of working (only with "pure" java). It would be this: model (Classes with get and set)    dao (classes that extends the connection class) (for each cla...
asked by 27.07.2014 / 02:19
1
answer

How to redeem a key in a Json using Gson (Google)

Good evening. For the first time I'm manipulating a Json file with Java, because many colleagues have always told me that it is very easy to manipulate data, especially with the Google library (Gson). Well, a question that came up to me is...
asked by 22.08.2014 / 05:46
2
answers

Warning Hibernate HHH000444 using Oracle 10g with WildFly 8.0.0 - follow-on locking

When doing some queries on a view using JPA (2.1) with Hibernate , I'm having this warning . Although it's working and just being a warning , it bothers me a little.    WARN org.hibernate.loader.Loader - HHH000444: Encountered request for...
asked by 27.03.2014 / 12:53
0
answers

Java - error: can not find symbol - Even with created object

I created these two classes: Equipment.java class Equipamento{ private int id; private String nome; private String local; public void setId(int id){ this.id = id; } public void setNome(String n){ this.nome = n;...
asked by 24.08.2018 / 18:18
1
answer

OneToMany mapping with associative table with HIBERNATE - JPA

I need to map Hibernate from a 1:N relation to two tables, but there is an associative table that has the ids of the other two tables as columns. Example: The Servicos table can have many Itens and each item can only b...
asked by 21.08.2018 / 18:59
1
answer

get username logged in with Spring Security

Hello, I came here to ask for help on Spring Security. I would like to know how I can get the username of the logged in user. I use authentication with login and password but when I use the search method it returns me the login, and I need to...
asked by 26.04.2018 / 21:50
0
answers

DAO not injecting with @EJB annotation

I am making a request for "/ counter / {id}" by PostMan and when the code arrives at notificationAdobe.controller (id) , I get the error message saying notification is null . PS: I'm using Wildfly 11 with Eclipse Oxygen Controller...
asked by 12.03.2018 / 14:29
0
answers

Problem starting tomcat

Good afternoon I have the following problem on my production server. I have already installed tomcat 8 and 9 to test, JDK 8, set everything right (I believe) and one of my projects does not go up. The strange thing that the WAR generated with...
asked by 14.12.2017 / 17:44
1
answer

Convert ArrayList to Object [] [] [closed]

How to convert an ArrayList to a 2D Object. My Current Code: ArrayList<String> a = null; a = new ArrayList<String>(); a.add("ABC"); a.add("DEF"); a.add("1");...
asked by 15.12.2017 / 14:25
0
answers

Change JPA / JPQL record [closed]

I'm doing my first WEB project and I have a question about using JPA / JPQL / MERGE. The question is: I need to change a record of a table, I've created a dataTable that returns me a list of Open Tickets. This table is populated by my V...
asked by 14.12.2017 / 02:55