Hi, i really need help here. I use the type date for column named LOGS, hoping that system's date and time will be inserted from myEntity.setLogs(new Date())
The date is inserted successfully by hibernate but the time is set to zero. I've used the latest version of oracle jdbc driver for 9.2.0.1 release, but it still goes like this.
The column type is oracle DATE, the entity uses java.util.Date.
Any help would really be appreciated !
Thanks !
Hibernate version:
2.1
Mapping documents:
<property
name="logs"
type="date"
column="LOGS"
/>
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
oracle 9.2.0.1
The generated SQL (show_sql=true):
Hibernate: update PERINTAHBAYAR set VERSION=?, TGLPERINTAHBAYAR=?, KODESUPPLIER=?, NILAIPEMBAYARAN=?, FLAGSUDAHKONFIRMAKHIR=?, LOGS=? where NOPERINTAHBAYAR=? and JENISTRANSAKSI=? and VERSION=?
Debug level Hibernate log excerpt:
[/quote]
_________________ Greater in battle
than the man who would conquer
a thousand-thousand men,
is he who would conquer
just one —
himself.
|