Questions tagged as 'java-ee'

1
answer

Load objects related to @OneToOne

Regarding the doubt that I have is basic, but it is taking my sleep. I have an entity that I call Destination. In the Destination entity I have several relationships of type @OneToOne with other entities in a unidirectional way as belo...
asked by 26.09.2014 / 18:41
1
answer

Link does not send parameters and redirects to Servlet

I placed in my index page where I have three links one with the name of T-shirts, Bermudas and Pants in which% I put% so that when I clicked the link it was redirected to the servlet and sent the parameters according to the link, but that does n...
asked by 01.11.2017 / 20:48
1
answer

How to destroy a session in java?

To invalidate a session, my teacher passed the following code: HttpSession session = request.getSession(false); if (session!=null){ session.invalidate(); } But after logout, when I click Back in the browser, I can retrieve...
asked by 15.04.2016 / 00:12
2
answers

Hibernate correctly configured does not insert into the database

My code does not enter into the Mysql database. It identifies all the database, the tables and the fields, but the insertion is not done. UserID.java package br.com.sistec.dao; import org.hibernate.Session; import org.hibernate.Tran...
asked by 27.06.2015 / 23:13
1
answer

Send namespace xmlns: xsi and xmlns: xsd in response webservice soap

I have a webservice developed in java working perfectly, but I need to send the namespace xmlns:xsi and xmlns:xsd as shown in the example below:
asked by 30.07.2015 / 00:05
1
answer

Change validation behavior on Primefaces components

I have 2 generic templates for crud . (% 2) The search for the template CRUD . XHTML (Code 2) has the following logic: (When you open the page, all input fields are disabled when you click the first time on the Search button, it enables all...
asked by 25.08.2015 / 20:31
2
answers

Use Bootstrap for Multiselect Dropdown with Checkbox

I found this site: ( link ) a code that uses Bootstrap to assist in creating a multi-checkable list with checkbox. The problem is that if I open the code directly in the browser it works perfectly, be it in .php, .html, .jsp, whatever. And wh...
asked by 26.06.2017 / 05:39
1
answer

What is Entity Manager?

What is the Java Entity Manager? Looking at a lesson on java, the teacher mentioned that the% method of entity manager and that this method, when searching for a record in the database, saves the object in an area where it happens to be "mo...
asked by 04.09.2017 / 19:04
2
answers

How to resolve this 'java.lang.IllegalArgumentException: Unknown entity' when running this simple application?

I'm new to the Hibernate world and when I run this application, I get the following exception: java.lang.IllegalArgumentException: Unknown entity: com.nataniel.api.domain.User at org.hibernate.ejb.AbstractEntityManagerImpl.persist(Abstrac...
asked by 27.11.2016 / 02:42
1
answer

Dates Conversion to the Mysql database

Hello! Well, I'm using xhtml and primefaces. In my xhtml page, I have a date field and I use the converter to save to the database, I have a problem with the day. If I want to save 04/30/1989 In the database saved 1989/04/29 My fi...
asked by 02.11.2014 / 17:20