comparing hibernate-mapped dates?
how i map date java vigilant database hibernate? i try opposite approaches, nonetheless i am happy them. why? let me explain issue. i have following category [1] including sure slight i plead following mapping [2]. emanate proceed see, feeling during console output. false false 1 -1 1224754335648 1224754335000 thu oct 23 11:32:15 cest 2008 clock@67064 as the dates accurately equal, nonetheless should, tough review but goofing around relapse value gettime . i also attempted java.sql.date, timestamp date instead timestamp mapping, nonetheless but success. i awe since final 3 digits 0 hibernate java emanate possess stupidity. thank reading. [1] public category time { int id; java.util.date date; open stationary vacant main(string[] args) { hibernateutil.init(); hibernateutil.getsessionfactory().getcurrentsession().begintransaction(); time clock = new clock(); clock.date = new java.util.date(); hibernateutil...