若需要使用hibernate对joda-time进行持久化,则需要配置joda-time和usertype-core的依赖
<properties><hibernate.version>5.2.17.Final</hibernate.version><mysql.version>8.0.11</mysql.version><goda.time.version>2.9.9</goda.time.version></properties>
<dependencies><dependency><groupId>org.hibernate</groupId><artifactId>hibernate-core</artifactId><version>${hibernate.version}</version></dependency><dependency><groupId>org.hibernate</groupId><artifactId>hibernate-entitymanager</artifactId><version>${hibernate.version}</version></dependency><dependency><groupId>mysql</groupId><artifactId>mysql-connector-java</artifactId><version>${mysql.version}</version></dependency><dependency><groupId>joda-time</groupId><artifactId>joda-time</artifactId><version>${goda.time.version}</version></dependency><dependency><groupId>org.jadira.usertype</groupId><artifactId>usertype.core</artifactId><version>6.0.1.GA</version></dependency></dependencies>