I'm saving an entity in hibernate with a creation date
@Id @Column(name = "dtcreation") @Type(type="timestamp") private Date creation;and I put a new Date on this field:
entity.setCreation(new Date()); entityDao.persist(entity);but when it is saved on the db the time don't contains the milliseconds, but put it a 0 if I try to update with a query the value of the milliseconds it works...someone can help me?
after the persist method i have a record with 01/06/2011 15:00:00.0 but if i made an UPDATE i can change the milliseconds, so the db supports it.. the database is informix