Skip to content

Commit bf3b7e0

Browse files
marko-bekhtambellade
authored andcommitted
Remove DomesticCat entity type name as it's not in the docs anymore
1 parent 4326f61 commit bf3b7e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

documentation/src/main/asciidoc/userguide/chapters/pc/PersistenceContext.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ include::{example-dir-pc}/PersistenceContextTest.java[tags=pc-persist-native-exa
6363
`org.hibernate.Session` also has a method named persist which follows the exact semantics defined in the Jakarta Persistence specification for the persist method.
6464
It is this `org.hibernate.Session` method to which the Hibernate `jakarta.persistence.EntityManager` implementation delegates.
6565

66-
If the `DomesticCat` entity type has a generated identifier, the value is associated with the instance when the save or persist is called.
67-
If the identifier is not automatically generated, the manually assigned (usually natural) key value has to be set on the instance before the save or persist methods are called.
66+
Instances of entity types using <<identifiers-generators,generated identifiers>> will be automatically associated with
67+
an identifier value when the save or persist operation is called.
68+
If an entity type does not rely on a <<identifiers-generators,generated id>>, then an identifier value
69+
(usually natural) must be manually assigned to the entity instance before the save or persist operations can be called.
6870

6971
[[pc-remove]]
7072
=== Deleting (removing) entities

0 commit comments

Comments
 (0)