Skip to content

Commit 8213cca

Browse files
committed
improve jdoc of SS.xxxxMultiple() methods
1 parent 333dd4e commit 8213cca

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

hibernate-core/src/main/java/org/hibernate/StatelessSession.java

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ public interface StatelessSession extends SharedSessionContract {
9797
Object insert(Object entity);
9898

9999
/**
100-
* Insert multiple records.
100+
* Insert multiple records in the same order as the entity
101+
* instances representing the new records occur in the given
102+
* list.
101103
*
102104
* @param entities a list of transient instances to be inserted
103105
*
@@ -130,7 +132,9 @@ public interface StatelessSession extends SharedSessionContract {
130132
void update(Object entity);
131133

132134
/**
133-
* Update multiple records.
135+
* Update multiple records in the same order as the entity
136+
* instances representing the records occur in the given
137+
* list.
134138
*
135139
* @param entities a list of detached instances to be updated
136140
*
@@ -161,7 +165,9 @@ public interface StatelessSession extends SharedSessionContract {
161165
void delete(Object entity);
162166

163167
/**
164-
* Delete multiple records.
168+
* Delete multiple records in the same order as the entity
169+
* instances representing the records occur in the given
170+
* list.
165171
*
166172
* @param entities a list of detached instances to be deleted
167173
*
@@ -206,9 +212,11 @@ public interface StatelessSession extends SharedSessionContract {
206212
void upsert(Object entity);
207213

208214
/**
209-
* Perform an upsert, that is, to insert the record if it does
210-
* not exist, or update the record if it already exists, for
211-
* each given record.
215+
* Upsert multiple records, that is, for a given record,
216+
* insert the record if it does not exist or update the
217+
* record if it already exists, in the same order as the
218+
* entity instances representing the records occur in
219+
* the given list.
212220
*
213221
* @param entities a list of detached instances and new
214222
* instances with assigned identifiers

0 commit comments

Comments
 (0)