You're mixing up class and type: it's very common. I see many mapping files containing type="java.lang.String", which I find quite amusing.
Hibernate types are defined in org.hibernate.type; you can add to them using your own user types. Those types are named using the class type of the user type; that's usually a long and cumbersome string, so use the <typedef> tag to create an alias for it.
Anyway, to answer your question: you want type="date". Have a look in org.hibernate.type.DateType: you'll see that it converts between java.sql.Date and java.util.Date for you.
|