Skip to content

Commit 67816c5

Browse files
committed
fix typo in SS jdoc
1 parent b1795a6 commit 67816c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public interface StatelessSession extends SharedSessionContract {
7373
* Insert a record.
7474
* <p>
7575
* If the entity {@code @Id} field is declared to be generated,
76-
* for example, if it is annotated {@code @GeneratedId}, the id
77-
* is generated and assigned to the given instance.
76+
* for example, if it is annotated {@code @GeneratedValue}, the
77+
* id is generated and assigned to the given instance.
7878
* <p>
7979
* The {@link jakarta.persistence.PostPersist} callback will be
8080
* triggered if the operation is successful.
@@ -152,8 +152,8 @@ public interface StatelessSession extends SharedSessionContract {
152152
* On the other hand, {@code upsert()} does accept an entity
153153
* instance with an assigned identifier value, even if the entity
154154
* {@code @Id} field is declared to be generated, for example, if
155-
* it is annotated {@code @GeneratedId}. Thus, this method may be
156-
* used to import data from an external source.
155+
* it is annotated {@code @GeneratedValue}. Thus, this method may
156+
* be used to import data from an external source.
157157
*
158158
* @param entity a detached entity instance, or a new instance
159159
* with an assigned identifier

0 commit comments

Comments
 (0)