I am trying to save the current timestamp in an oracle table field defined as TIMESTAMP (6). I installed it using the setter method, which looks like this:
void org.samples.Invoice.setCreated(Calendar value)
I set the field using Calendar.getInstance ().
Invoice inv = new Invoice(); inv.setCreated(Calendar.getInstance());
I see that the entered timestamp has the correct date, but the time is always set as 00: 00: 00.0
Could you tell me what I'm doing wrong here?
source share