title: Storing Dates in Oracle via Hibernate
body: <p>I'm storing a simple java.util.date in an Oracle XE database via hibernate.</p>
  
  <p>When testing with JUnit if I can retrieve the correct value, I get an error like this:</p>
  
  <pre><code>junit.framework.AssertionFailedError: 
    expected:&lt;Sun Dec 28 11:20:27 CET 2008&gt; 
    but was:&lt;2008-12-28 11:20:27.0&gt;
  </code></pre>
  
  <p>The value is stored in an Oracle Date column (which should have a second-precision) which looks okay to me. Also, I'm surprised that 11:20:27 is not equal to 11:20:27.0. Or does this have to do with timezones?</p>
  
  <p>Any help is welcome.</p>
  
  <p>Thorsten</p>