use of org.hibernate.cfg.annotations.NamedProcedureCallDefinition in project hibernate-orm by hibernate.
the class Configuration method reset.
protected void reset() {
implicitNamingStrategy = ImplicitNamingStrategyJpaCompliantImpl.INSTANCE;
physicalNamingStrategy = PhysicalNamingStrategyStandardImpl.INSTANCE;
namedQueries = new HashMap<String, NamedQueryDefinition>();
namedSqlQueries = new HashMap<String, NamedSQLQueryDefinition>();
sqlResultSetMappings = new HashMap<String, ResultSetMappingDefinition>();
namedEntityGraphMap = new HashMap<String, NamedEntityGraphDefinition>();
namedProcedureCallMap = new HashMap<String, NamedProcedureCallDefinition>();
standardServiceRegistryBuilder = new StandardServiceRegistryBuilder(bootstrapServiceRegistry);
entityTuplizerFactory = new EntityTuplizerFactory();
interceptor = EmptyInterceptor.INSTANCE;
properties = new Properties();
properties.putAll(standardServiceRegistryBuilder.getSettings());
}
use of org.hibernate.cfg.annotations.NamedProcedureCallDefinition in project hibernate-orm by hibernate.
the class InFlightMetadataCollectorImpl method addNamedProcedureCallDefinition.
@Override
public void addNamedProcedureCallDefinition(NamedProcedureCallDefinition definition) {
if (definition == null) {
throw new IllegalArgumentException("Named query definition is null");
}
final String name = definition.getRegisteredName();
if (defaultNamedProcedureNames.contains(name)) {
return;
}
final NamedProcedureCallDefinition previous = namedProcedureCallMap.put(name, definition);
if (previous != null) {
throw new DuplicateMappingException(DuplicateMappingException.Type.PROCEDURE, name);
}
}
Aggregations