HHH-10715 Deleting more dead code
This commit is contained in:
parent
5b6f3ff3b8
commit
ad6584ff10
|
@ -32,7 +32,6 @@ import org.hibernate.internal.CoreLogging;
|
|||
import org.hibernate.internal.CoreMessageLogger;
|
||||
import org.hibernate.internal.util.StringHelper;
|
||||
import org.hibernate.mapping.Collection;
|
||||
import org.hibernate.mapping.IndexedCollection;
|
||||
import org.hibernate.mapping.Join;
|
||||
import org.hibernate.mapping.KeyValue;
|
||||
import org.hibernate.mapping.PersistentClass;
|
||||
|
@ -409,35 +408,6 @@ public class CollectionPropertyHolder extends AbstractPropertyHolder {
|
|||
.findAutoApplyConverterForCollectionElement( collectionXProperty, getContext() );
|
||||
}
|
||||
|
||||
private Class determineElementClass(XClass elementXClass) {
|
||||
if ( elementXClass != null ) {
|
||||
try {
|
||||
return getContext().getBootstrapContext().getReflectionManager().toClass( elementXClass );
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.debugf(
|
||||
"Unable to resolve XClass [%s] to Class for collection elements [%s]",
|
||||
elementXClass.getName(),
|
||||
collection.getRole()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if ( collection.getElement() != null ) {
|
||||
if ( collection.getElement().getType() != null ) {
|
||||
return collection.getElement().getType().getReturnedClass();
|
||||
}
|
||||
}
|
||||
|
||||
// currently this is called from paths where the element type really should be known,
|
||||
// so log the fact that we could not resolve the collection element info
|
||||
log.debugf(
|
||||
"Unable to resolve element information for collection [%s]",
|
||||
collection.getRole()
|
||||
);
|
||||
return null;
|
||||
}
|
||||
|
||||
public ConverterDescriptor mapKeyAttributeConverterDescriptor(XProperty mapXProperty, XClass keyXClass) {
|
||||
AttributeConversionInfo info = locateAttributeConversionInfo( "key" );
|
||||
if ( info != null ) {
|
||||
|
@ -466,33 +436,4 @@ public class CollectionPropertyHolder extends AbstractPropertyHolder {
|
|||
.findAutoApplyConverterForMapKey( mapXProperty, getContext() );
|
||||
}
|
||||
|
||||
private Class determineKeyClass(XClass keyXClass) {
|
||||
if ( keyXClass != null ) {
|
||||
try {
|
||||
return getContext().getBootstrapContext().getReflectionManager().toClass( keyXClass );
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.debugf(
|
||||
"Unable to resolve XClass [%s] to Class for collection key [%s]",
|
||||
keyXClass.getName(),
|
||||
collection.getRole()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
final IndexedCollection indexedCollection = (IndexedCollection) collection;
|
||||
if ( indexedCollection.getIndex() != null ) {
|
||||
if ( indexedCollection.getIndex().getType() != null ) {
|
||||
return indexedCollection.getIndex().getType().getReturnedClass();
|
||||
}
|
||||
}
|
||||
|
||||
// currently this is called from paths where the element type really should be known,
|
||||
// so log the fact that we could not resolve the collection element info
|
||||
log.debugf(
|
||||
"Unable to resolve key information for collection [%s]",
|
||||
collection.getRole()
|
||||
);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue