Skip to content

Commit c7e1952

Browse files
committed
HHH-16548 document CWD class scanning
1 parent 087f9ab commit c7e1952

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hibernate-core/src/main/java/org/hibernate/jpa/HibernatePersistenceConfiguration.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
* <li>JVM {@linkplain System#getProperties() system properties}, and
6767
* <li>properties specified in {@code hibernate.properties}.
6868
* </ul>
69+
* <p>
70+
* When {@linkplain org.hibernate.cfg.PersistenceSettings#SCANNER_DISCOVERY
71+
* entity discovery} is explicitly enabled, and {@code hibernate-scan-jandex}
72+
* or some other {@link org.hibernate.boot.archive.scan.spi.ScannerFactory}
73+
* service is available, the current working directly is scanned for entity
74+
* classes, alleviating the program of the need to call {@link #managedClass}.
6975
*
7076
* @apiNote The specification explicitly encourages implementors to extend
7177
* {@link PersistenceConfiguration} to accommodate vendor-specific

0 commit comments

Comments
 (0)