You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/jpa/entity-persistence.adoc
+2-2
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
3
4
4
This section describes how to persist (save) entities with Spring Data JPA.
5
5
6
-
[[jpa.entity-persistence.saving-entites]]
6
+
[[jpa.entity-persistence.saving-entities]]
7
7
== Saving Entities
8
8
9
9
Saving an entity can be performed with the `CrudRepository.save(…)` method. It persists or merges the given entity by using the underlying JPA `EntityManager`. If the entity has not yet been persisted, Spring Data JPA saves the entity with a call to the `entityManager.persist(…)` method. Otherwise, it calls the `entityManager.merge(…)` method.
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/jpa/jpd-misc-cdi-integration.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ class CdiConfig {
46
46
47
47
In the preceding example, the container has to be capable of creating JPA `EntityManagers` itself. All the configuration does is re-export the JPA `EntityManager` as a CDI bean.
48
48
49
-
The Spring Data JPA CDI extension picks up all available `EntityManager` instances as CDI beans and creates a proxy for a Spring Data repository whenever a bean of a repository type is requested by the container. Thus, obtaining an instance of a Spring Data repository is a matter of declaring an `@Injected` property, as shown in the following example:
49
+
The Spring Data JPA CDI extension picks up all available `EntityManager` instances as CDI beans and creates a proxy for a Spring Data repository whenever a bean of a repository type is requested by the container. Thus, obtaining an instance of a Spring Data repository is a matter of declaring an `@Inject` property, as shown in the following example:
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/jpa/misc-merging-persistence-units.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -37,5 +37,5 @@ A plain JPA setup requires all annotation-mapped entity classes to be listed in
37
37
----
38
38
====
39
39
40
-
NOTE: As of Spring 3.1, a package to scan can be configured on the `LocalContainerEntityManagerFactoryBean` directly to enable classpath scanning for entity classes. See the link:{springJavadocUrl}org/springframework/orm/jpa/LocalContainerEntityManagerFactoryBean.html#setPackagesToScan(java.lang.String...)$$[JavaDoc] for details.
40
+
NOTE: As of Spring 3.1, a package to scan can be configured on the `LocalContainerEntityManagerFactoryBean` directly to enable classpath scanning for entity classes. See the link:{springJavadocUrl}/org/springframework/orm/jpa/LocalContainerEntityManagerFactoryBean.html#setPackagesToScan(java.lang.String...)$$[JavaDoc] for details.
0 commit comments