Skip to content

Commit ea95d66

Browse files
committed
let the UserType determine its recommendedJdbcType
as suggested by @cigaly
1 parent a6be182 commit ea95d66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/type/internal/UserTypeJavaTypeWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public MutabilityPlan<J> getMutabilityPlan() {
7979

8080
@Override
8181
public JdbcType getRecommendedJdbcType(JdbcTypeIndicators context) {
82-
return context.getJdbcType( userType.getSqlType() );
82+
return userType.getJdbcType( context.getTypeConfiguration() );
8383
}
8484

8585
@Override

0 commit comments

Comments
 (0)