Skip to content
Merged
Show file tree
Hide file tree
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
20 changes: 14 additions & 6 deletions hibernate-core/src/main/java/org/hibernate/StatelessSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ public interface StatelessSession extends SharedSessionContract {
Object insert(Object entity);

/**
* Insert multiple records.
* Insert multiple records in the same order as the entity
* instances representing the new records occur in the given
* list.
*
* @param entities a list of transient instances to be inserted
*
Expand Down Expand Up @@ -130,7 +132,9 @@ public interface StatelessSession extends SharedSessionContract {
void update(Object entity);

/**
* Update multiple records.
* Update multiple records in the same order as the entity
* instances representing the records occur in the given
* list.
*
* @param entities a list of detached instances to be updated
*
Expand Down Expand Up @@ -161,7 +165,9 @@ public interface StatelessSession extends SharedSessionContract {
void delete(Object entity);

/**
* Delete multiple records.
* Delete multiple records in the same order as the entity
* instances representing the records occur in the given
* list.
*
* @param entities a list of detached instances to be deleted
*
Expand Down Expand Up @@ -206,9 +212,11 @@ public interface StatelessSession extends SharedSessionContract {
void upsert(Object entity);

/**
* Perform an upsert, that is, to insert the record if it does
* not exist, or update the record if it already exists, for
* each given record.
* Upsert multiple records, that is, for a given record,
* insert the record if it does not exist or update the
* record if it already exists, in the same order as the
* entity instances representing the records occur in
* the given list.
*
* @param entities a list of detached instances and new
* instances with assigned identifiers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ private static String mappingId(String procedureName, String[] resultSetMappingN
}

private void registerParameters(SharedSessionContractImplementor session, NamedCallableQueryMemento memento) {
memento.getParameterMementos()
.forEach( parameterMemento -> registerParameter( parameterMemento.resolve( session ) ) );
for ( var parameterMemento : memento.getParameterMementos() ) {
registerParameter( parameterMemento.resolve( session ) );
}
}

private ProcedureCallImpl(
Expand Down
Loading