It is not possible at the moment to create custom temporal type (see org.hibernate.type.SqlTypes.isTemporalType) . Some hook should be added to allow custom type code to be treated as temporal. This is important as arguments in HQL functions are now validated and this prevents proper validation for custom types that should be temporal . Concretely oracle has timestamp with local time zone type that currently needs this. |