These settings can indeed be placed in a sleep configuration, as shown below:
<session-factory> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.url">jdbc:mysql://localhost:3306/SOME_DATABASE</property> <property name="connection.username">root</property> <property name="connection.password">password</property> ... <property name="jadira.usertype.databaseZone">UTC</property> <property name="jadira.usertype.javaZone">UTC</property> </session-factory>
It turns out that I mistakenly referred to an old version of the UserType library that did not support these properties. D'o!
source share