Skip to content

Commit 7400882

Browse files
committed
HHH-17460 - Ongoing JPA 32 work
1 parent d160194 commit 7400882

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hibernate-core/src/main/java/org/hibernate/boot/model/internal/PropertyContainer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,12 @@ else if ( memberDetails.hasAnnotationUsage( JdbcTypeCode.class ) ) {
394394
return true;
395395
}
396396

397+
if ( memberDetails.getType().determineRawClass().isImplementor( Class.class ) ) {
398+
// specialized case for @Basic attributes of type Class (or Class<?>, etc.).
399+
// we only really care about the Class part
400+
return true;
401+
}
402+
397403
return false;
398404
}
399405

0 commit comments

Comments
 (0)