Hello, I'm doing a project that manages all the projects in my company, I'm using Hibernate, JavaWeb, primefaces, TDD and MVC standard .
My entity is shaped like this for date variables:
@Temporal(value = TemporalType.TIMESTAMP)
@Column(name = "dataInicio_projeto", nullable = false)
private Date dataInicio;
I used this in TDD to test it:
projeto1.setDataInicio(new Date());
I need to know how I do in the visual part (JSF) of the project to send the date of the user's choice to the bank, since the bank is modeled according to the entity (reverse engineering).
A friend told me to use 'Calendar' variable because it is an improvement on 'Date', I do not know what to do. I need help ...