To see if the typedef.hbm.xml file was being used, I replaced an argument with a dummy name, like:
Code:
<typedef dummy="dateTime" class="org.joda.time.contrib.hibernate.PersistentDateTime" />
And I would get an exception for it at build time, leading me to think the file was parsed and therefore attempted to be used.
But when having it with the correct name argument I still get the original exception relating to the type dateTime not being known in:
Code:
<property name="contactDateTime"
type="dateTime">
<column name="contact_datetime" />
</property>
After Googling a bit I finally found the solution.
I needed to explicitly include the file in the Hibernate configuration, as in:
Code:
<property name="mappingResources">
<list>
<value>com/thalasoft/learnintouch/core/domain/typedef.hbm.xml</value>
</list>
</property>
And now, I can use the type dateTime in the Hibernate mapping files.