HHH-8472 @Lob annotation applies to both key and value of Map

Conflicts:
	hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java
This commit is contained in:
minman 2013-09-11 14:44:09 -04:00 committed by Brett Meyer
parent 9bdf729968
commit 795886245d
1 changed files with 1 additions and 2 deletions

View File

@ -196,8 +196,7 @@ public class SimpleValueBinder {
}
explicitType = type;
}
else if ( property.isAnnotationPresent( Lob.class ) ) {
else if ( !key && property.isAnnotationPresent( Lob.class ) ) {
if ( mappings.getReflectionManager().equals( returnedClassOrElement, java.sql.Clob.class ) ) {
type = isNationalized
? StandardBasicTypes.NCLOB.getName()