Hello,
I am trying to receive a time that is saved in a DATE column. This is how I fetch the data in my Java code:
Query query = entityManager.createNativeQuery(SELECT_DATETIME);
Object[] dates = (Object[]) query.getSingleResult();
The dates are of the type java.sql.Date, but Date does not contain the time that was saved in the DATE column of my database. Is there any way to tell the database or Java to create java.sql.Time objects instead?
Best regards and thanks in advance.