Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.util.regex.Pattern;

import org.hibernate.HibernateException;
import org.hibernate.Internal;
import org.hibernate.MappingException;
import org.hibernate.SessionFactory;
import org.hibernate.boot.SessionFactoryBuilder;
Expand Down Expand Up @@ -679,4 +680,32 @@ public Map<Class<?>, Component> getGenericComponentsMap() {
public Map<Class<?>, DiscriminatorType<?>> getEmbeddableDiscriminatorTypesMap() {
return embeddableDiscriminatorTypesMap;
}

@Internal
// called by the Quarkus extension
public MetadataImpl trim() {
return new MetadataImpl(
getUUID(),
getMetadataBuildingOptions(), //TODO Replace this
getEntityBindingMap(),
getComposites(),
getGenericComponentsMap(),
getEmbeddableDiscriminatorTypesMap(),
getMappedSuperclassMap(),
getCollectionBindingMap(),
getTypeDefinitionMap(),
getFilterDefinitions(),
getFetchProfileMap(),
getImports(), // ok
getIdGeneratorDefinitionMap(),
getNamedQueryMap(),
getNamedNativeQueryMap(), // TODO might contain references to org.hibernate.loader.custom.ConstructorResultColumnProcessor, org.hibernate.type.TypeStandardSQLFunction
getNamedProcedureCallMap(),
getSqlResultSetMappingMap(), //TODO might contain NativeSQLQueryReturn (as namedNativeQueryMap above)
getNamedEntityGraphs(), //TODO reference to *annotation* instance ! FIXME or ignore feature?
getSqlFunctionMap(), // ok
getDatabase(), // Cleaned up: used to include references to MetadataBuildingOptions, etc.
getBootstrapContext() //FIXME WHOA!
);
}
Comment on lines +684 to +710
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

}