|
28 | 28 | pool-size: 30
|
29 | 29 | ----
|
30 | 30 |
|
31 |
| -Assuming that `SomeDataSource` has regular JavaBean properties for the URL, the username, and the pool size, these settings are bound automatically before the `DataSource` is made available to other components. |
| 31 | +Assuming that `+SomeDataSource+` has regular JavaBean properties for the URL, the username, and the pool size, these settings are bound automatically before the `DataSource` is made available to other components. |
32 | 32 |
|
33 | 33 | Spring Boot also provides a utility builder class, called `DataSourceBuilder`, that can be used to create one of the standard data sources (if it is on the classpath).
|
34 | 34 | The builder can detect which one to use based on what is available on the classpath.
|
@@ -244,7 +244,7 @@ Alternatively, if `ImplicitNamingStrategy` or `PhysicalNamingStrategy` beans are
|
244 | 244 | By default, Spring Boot configures the physical naming strategy with `CamelCaseToUnderscoresNamingStrategy`.
|
245 | 245 | Using this strategy, all dots are replaced by underscores and camel casing is replaced by underscores as well.
|
246 | 246 | Additionally, by default, all table names are generated in lower case.
|
247 |
| -For example, a `TelephoneNumber` entity is mapped to the `telephone_number` table. |
| 247 | +For example, a `+TelephoneNumber+` entity is mapped to the `telephone_number` table. |
248 | 248 | If your schema requires mixed-case identifiers, define a custom `CamelCaseToUnderscoresNamingStrategy` bean, as shown in the following example:
|
249 | 249 |
|
250 | 250 | include-code::spring/MyHibernateConfiguration[]
|
@@ -288,7 +288,7 @@ For details, see {url-hibernate-userguide}#caching-provider-jcache[the Hibernate
|
288 | 288 | [[howto.data-access.dependency-injection-in-hibernate-components]]
|
289 | 289 | == Use Dependency Injection in Hibernate Components
|
290 | 290 |
|
291 |
| -By default, Spring Boot registers a `BeanContainer` implementation that uses the `BeanFactory` so that converters and entity listeners can use regular dependency injection. |
| 291 | +By default, Spring Boot registers a `org.hibernate.resource.beans.container.spi.BeanContainer` implementation that uses the `BeanFactory` so that converters and entity listeners can use regular dependency injection. |
292 | 292 |
|
293 | 293 | You can disable or tune this behavior by registering a `HibernatePropertiesCustomizer` that removes or changes the `hibernate.resource.beans.container` property.
|
294 | 294 |
|
@@ -317,8 +317,8 @@ Building upon xref:how-to:data-access.adoc#howto.data-access.configure-two-datas
|
317 | 317 | include-code::MyAdditionalEntityManagerFactoryConfiguration[]
|
318 | 318 |
|
319 | 319 | The example above creates an `EntityManagerFactory` using the `DataSource` bean qualified with `@Qualifier("second")`.
|
320 |
| -It scans entities located in the same package as `Order`. |
321 |
| -It is possible to map additional JPA properties using the `app.jpa` namespace. |
| 320 | +It scans entities located in the same package as `+Order+`. |
| 321 | +It is possible to map additional JPA properties using the `+app.jpa+` namespace. |
322 | 322 | The use of `@Bean(defaultCandidate=false)` allows the `secondJpaProperties` and `secondEntityManagerFactory` beans to be defined without interfering with auto-configured beans of the same type.
|
323 | 323 |
|
324 | 324 | NOTE: The {url-spring-framework-docs}/core/beans/dependencies/factory-autowire.html#beans-factory-autowire-candidate[Spring Framework reference documentation] describes this feature in more details.
|
|
0 commit comments