Corrected note on JPA <exclude-unlisted-classes>

Issue: SPR-10767
master
Juergen Hoeller 10 years ago
parent a3213f26a5
commit 03bd08a6a5
  1. 13
      src/asciidoc/index.adoc

@ -28578,13 +28578,12 @@ The following example shows a typical `persistence.xml` file:
[NOTE] [NOTE]
==== ====
The `exclude-unlisted-classes` element always indicates that __no__ scanning for The `<exclude-unlisted-classes/>` shortcut indicates that __no__ scanning for
annotated entity classes is supposed to occur, in order to support the annotated entity classes is supposed to occur. An explicit 'true' value specified -
`<exclude-unlisted-classes/>` shortcut. This is in line with the JPA specification, `<exclude-unlisted-classes>true</exclude-unlisted-classes/>` - also means no scan.
which suggests that shortcut, but unfortunately is in conflict with the JPA XSD, which `<exclude-unlisted-classes>false</exclude-unlisted-classes/>` does trigger a scan;
implies `false` for that shortcut. Consequently, `<exclude-unlisted-classes> false however, it is recommended to simply omit the `exclude-unlisted-classes` element
</exclude-unlisted-classes/>` is not supported. Simply omit the if you want entity class scanning to occur.
`exclude-unlisted-classes` element if you want entity class scanning to occur.
==== ====
Using the `LocalContainerEntityManagerFactoryBean` is the most powerful JPA setup Using the `LocalContainerEntityManagerFactoryBean` is the most powerful JPA setup

Loading…
Cancel
Save