timestamp « JPA « Spring Q&A





1. JPA, Hibernate, Timestamp    forum.springsource.org

Hi, some of my @Entity classes contain java.util.Date fields. When I get them back from database they are java.sql.Timestamp instances. OK, this is derived from java.util.Date but I have some problems ...

2. Timestamp with nano second precision in Hibernate    forum.springsource.org

you have to save the value as a bigint in the database, not as a timestamp, and convert it to time on demand try using System.nanoTime(); to get the time from ...