Skip to content

Commit 0695299

Browse files
minmanbrmeyer
authored andcommitted
HHH-8472 @lob annotation applies to both key and value of Map
1 parent 7444c6c commit 0695299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ else if ( mappings.getReflectionManager().equals( returnedClassOrElement, Calend
203203
}
204204
explicitType = type;
205205
}
206-
else if ( property.isAnnotationPresent( Lob.class ) ) {
206+
else if ( !key && property.isAnnotationPresent( Lob.class ) ) {
207207
if ( mappings.getReflectionManager().equals( returnedClassOrElement, java.sql.Clob.class ) ) {
208208
type = isNationalized
209209
? StandardBasicTypes.NCLOB.getName()

0 commit comments

Comments
 (0)