This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
thanks for replay,
I know about @Temporal annotation, but if I use @Temporal(TemporalType.DATE) I get java.util.Date with default time 12:00:00.
In oracle database is saved following date: 01-01-2009 01:30:12. If I use above annotation, I'll get date 01-01-2009 00:00:00 (because TemporalType.DATE map to java.sql.Date)
If I use annotation with timestamp, I'll get exception. As I mentioned earlier, I can't change field type in database to timestamp