Skip to content

Commit

Permalink
HibernateTypesContributor throws java.lang.NoClassDefFoundError: java…
Browse files Browse the repository at this point in the history
…x/money/MonetaryAmount #468
  • Loading branch information
vladmihalcea committed Aug 3, 2022
1 parent 933c594 commit dc26482
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Expand Up @@ -94,9 +94,12 @@ public void contribute(TypeContributions typeContributions, ServiceRegistry serv
.contributeType(typeContributions, YearMonthEpochType.INSTANCE)
.contributeType(typeContributions, YearMonthIntegerType.INSTANCE)
.contributeType(typeContributions, YearMonthTimestampType.INSTANCE)
.contributeType(typeContributions, MonetaryAmountType.INSTANCE)
/* JSON */
.contributeType(typeContributions, JsonType.INSTANCE);
/* Money and Currency API */
if(ReflectionUtils.getClassOrNull("org.javamoney.moneta.Money") != null) {
this.contributeType(typeContributions, MonetaryAmountType.INSTANCE);
}
}

private HibernateTypesContributor contributeType(TypeContributions typeContributions, Object type) {
Expand Down
Expand Up @@ -94,9 +94,12 @@ public void contribute(TypeContributions typeContributions, ServiceRegistry serv
.contributeType(typeContributions, YearMonthEpochType.INSTANCE)
.contributeType(typeContributions, YearMonthIntegerType.INSTANCE)
.contributeType(typeContributions, YearMonthTimestampType.INSTANCE)
.contributeType(typeContributions, MonetaryAmountType.INSTANCE)
/* JSON */
.contributeType(typeContributions, JsonType.INSTANCE);
/* Money and Currency API */
if(ReflectionUtils.getClassOrNull("org.javamoney.moneta.Money") != null) {
this.contributeType(typeContributions, MonetaryAmountType.INSTANCE);
}
}

private HibernateTypesContributor contributeType(TypeContributions typeContributions, Object type) {
Expand Down

0 comments on commit dc26482

Please sign in to comment.