you should remove type. type is not required.
thiagodf wrote:
Hi ppl !
This is a old issue but i couldn't solve yet. I'm using Hibernate 3 and connecting to an Oracle version 8i.
Now the problem: I have a DATE type field. (Not TIMESTAMP, this type doesn't exist in this version)
I'm trying to map this field to an java.util.Date class. But it only retrieves the date and ignore the time part when i map it using the type="date".
If I use the type="time" it retrieves only the time and but this time i don't have the date.
Mapping with a type="timestamp" i got an exception. And if i don't define any type i get an exception: "time stamp expected".
Mapping to a calendar java type and a java.sql.Date was unsuccesful too.
I used in my experiments the ojdbc14.jar driver version 8 and 10.
I can't update or change the version of the Oracle server. And i don't think i have to create a user defined type to map a so usual field type.
Have anybody solved this issue before? Please i need some light on it.
Thanks in advance