title: why SQL Server timestamp type is mapped to Binary type in hibernate?
body: <p>I have a table with a column type as TimeStamp in Mssql and generated pojos using hibernate(reverse engineering).In the generated Pojo,timestamp field is marked as byte[].</p>
  
  <p>In the debugging process,I found TimeStamp sqlType code is "-2" that is Binary Type in Hibernate types and Hibernate binary type is equivalent to byte[] in java.</p>
  
  <p>Java, hibernate and sql server for timestamp data type </p>
  
  <pre><code> Mssql                 Hibernate             Java Type
   -----                 ---------             ---------
  
  Timestamp               Binary                 byte[]
  </code></pre>
  
  <p>I dont understand why only mssql type TimeStamp is mapped with Binary in Hibernate.But in other databases like Postgres,oracle,mysql...timestamp is mapped to hibernate timestamp type.</p>
  
  <p>I can resolve this issue by adding type-mapping in hibernate.reveng.xml by  mapping sql timestamp to hibernate timestamp. Dont know what else issues occurs further.</p>